~ testing correct stuff again

#SPM-14: add work #20m testing
This commit is contained in:
Johannes Theiner 2019-05-16 15:24:39 +02:00
parent e6d56675d3
commit ad0e2040ee
1 changed files with 21 additions and 21 deletions

View File

@ -30,7 +30,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(2), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(15), () -> result.set(overview.getResult()));
assertEquals(2477, result.get().get("Montag").getKey());
assertEquals(3359, result.get().get("Dienstag").getKey());
@ -39,12 +39,12 @@ class WeekOverviewTest {
assertEquals(2399, result.get().get("Freitag").getKey());
assertEquals(18273, result.get().get("Samstag").getKey());
assertEquals(3216, result.get().get("Montag").getValue());
assertEquals(5503, result.get().get("Dienstag").getValue());
assertEquals(1888, result.get().get("Mittwoch").getValue());
assertEquals(3568, result.get().get("Donnerstag").getValue());
assertEquals(2953, result.get().get("Freitag").getValue());
assertEquals(26243, result.get().get("Samstag").getValue());
assertEquals(8, result.get().get("Montag").getValue());
assertEquals(13, result.get().get("Dienstag").getValue());
assertEquals(5, result.get().get("Mittwoch").getValue());
assertEquals(9, result.get().get("Donnerstag").getValue());
assertEquals(10, result.get().get("Freitag").getValue());
assertEquals(55, result.get().get("Samstag").getValue());
}
@Test
@ -56,7 +56,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(3), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(15), () -> result.set(overview.getResult()));
assertEquals(26273, result.get().get("Montag").getKey());
@ -66,12 +66,12 @@ class WeekOverviewTest {
assertEquals(26413, result.get().get("Freitag").getKey());
assertEquals(146279, result.get().get("Samstag").getKey());
assertEquals(39839, result.get().get("Montag").getValue());
assertEquals(34992, result.get().get("Dienstag").getValue());
assertEquals(37299, result.get().get("Mittwoch").getValue());
assertEquals(35005, result.get().get("Donnerstag").getValue());
assertEquals(38911, result.get().get("Freitag").getValue());
assertEquals(214051, result.get().get("Samstag").getValue());
assertEquals(108, result.get().get("Montag").getValue());
assertEquals(93, result.get().get("Dienstag").getValue());
assertEquals(89, result.get().get("Mittwoch").getValue());
assertEquals(90, result.get().get("Donnerstag").getValue());
assertEquals(110, result.get().get("Freitag").getValue());
assertEquals(510, result.get().get("Samstag").getValue());
}
@Test
@ -83,7 +83,7 @@ class WeekOverviewTest {
AtomicReference<Map<String, Map.Entry<Double, Integer>>> result = new AtomicReference<>();
assertTimeout(Duration.ofMillis(30), () -> result.set(overview.getResult()));
assertTimeout(Duration.ofMillis(50), () -> result.set(overview.getResult()));
assertEquals(295688, result.get().get("Montag").getKey());
@ -93,11 +93,11 @@ class WeekOverviewTest {
assertEquals(330907, result.get().get("Freitag").getKey());
assertEquals(1410789, result.get().get("Samstag").getKey());
assertEquals(426952, result.get().get("Montag").getValue());
assertEquals(379125, result.get().get("Dienstag").getValue());
assertEquals(373891, result.get().get("Mittwoch").getValue());
assertEquals(356996, result.get().get("Donnerstag").getValue());
assertEquals(480062, result.get().get("Freitag").getValue());
assertEquals(2015766, result.get().get("Samstag").getValue());
assertEquals(1058, result.get().get("Montag").getValue());
assertEquals(942, result.get().get("Dienstag").getValue());
assertEquals(915, result.get().get("Mittwoch").getValue());
assertEquals(919, result.get().get("Donnerstag").getValue());
assertEquals(1177, result.get().get("Freitag").getValue());
assertEquals(4989, result.get().get("Samstag").getValue());
}
}