Skip to content

Commit

Permalink
feat(#2713): fix all qulice suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 22, 2023
1 parent cebabf2 commit 2970797
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.BasicFileAttributes;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,12 @@
import java.nio.file.Paths;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import org.cactoos.bytes.BytesOf;
import org.cactoos.bytes.UncheckedBytes;
import org.cactoos.io.ResourceOf;
import org.eolang.maven.util.HmBase;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.hamcrest.io.FileMatchers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.xembly.Directive;
import org.xembly.Directives;
import org.xembly.Xembler;

Expand All @@ -56,9 +51,12 @@ void returnsFromCacheIfXmlAlreadyInCache(@TempDir final Path tmp) throws IOExcep
OptCachedTest.save(tmp, program);
MatcherAssert.assertThat(
"We expected that the program will be returned from the cache",
new OptCached(path -> {
throw new IllegalStateException("This code shouldn't be executed");
}, tmp).apply(program),
new OptCached(
path -> {
throw new IllegalStateException("This code shouldn't be executed");
},
tmp
).apply(program),
Matchers.equalTo(program)
);
}
Expand Down

0 comments on commit 2970797

Please sign in to comment.