Modify test so that it only counts paint styles with MapWithAI in the title (name)

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-05-28 12:45:46 -06:00
rodzic 67f408476a
commit 46ff076402
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -140,11 +140,10 @@ public class MapWithAIDataUtilsTest {
Awaitility.await().atMost(Durations.FIVE_SECONDS)
.until(() -> !MapWithAIDataUtils.checkIfMapWithAIPaintStyleExists());
List<StyleSource> paintStyles = MapPaintStyles.getStyles().getStyleSources();
int initialSize = paintStyles.size();
for (int i = 0; i < 10; i++) {
MapWithAIDataUtils.addMapWithAIPaintStyles();
paintStyles = MapPaintStyles.getStyles().getStyleSources();
assertEquals(initialSize + 1, paintStyles.size(),
assertEquals(1, paintStyles.stream().filter(s -> s.title.contains("MapWithAI")).count(),
"The paintstyle should have been added, but only one of it");
}
}