Skip to content

Commit

Permalink
869 checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrov committed Jul 22, 2022
1 parent fd9ea3a commit 91b45bc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/test/java/com/yegor256/tojos/CachedTojosTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ class CachedTojosTest {
@Test
void testAddClearsCache(@TempDir final Path temp) {
final Tojos tojos = new MonoTojos(new Csv(temp.resolve("my-tojos-1.csv")));
tojos.add("A0").set("k10", "v10").set("k20", "vv10");
tojos.add("B0").set("k10", "v20").set("k20", "vv20");
tojos.add("C0").set("k10", "v30").set("k20", "vv30");
final String[] keys = new String[] {"k10", "k20"};
tojos.add("A0").set(keys[0], "v10").set(keys[1], "vv10");
tojos.add("B0").set(keys[0], "v20").set(keys[1], "vv20");
tojos.add("C0").set(keys[0], "v30").set(keys[1], "vv30");
final Tojos cached = new CachedTojos(tojos);
cached.select(x -> true);
cached.add("D0").set("k10", "v40").set("k20", "vv40");
Expand All @@ -54,9 +55,10 @@ void testAddClearsCache(@TempDir final Path temp) {
@Test
void testSelectFromCached(@TempDir final Path temp) {
final Tojos tojos = new MonoTojos(new Csv(temp.resolve("my-tojos-2.csv")));
tojos.add("A1").set("k11", "v11").set("k21", "vv11");
tojos.add("B1").set("k11", "v21").set("k21", "vv21");
tojos.add("C1").set("k11", "v31").set("k21", "vv31");
final String[] keys = new String[] {"k11", "k21"};
tojos.add("A1").set(keys[0], "v11").set(keys[1], "vv11");
tojos.add("B1").set(keys[0], "v21").set(keys[1], "vv21");
tojos.add("C1").set(keys[0], "v31").set(keys[1], "vv31");
final Tojos cached = new CachedTojos(tojos);
cached.select(x -> true);
tojos.add("D1").set("k11", "v41").set("k21", "vv41");
Expand Down

0 comments on commit 91b45bc

Please sign in to comment.