Skip to content

Commit adc0c57

Browse files
committed
Configuration with extra field test failed
1 parent f1c60de commit adc0c57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/GobPieConfTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ void testReadGobPieConfigurationWithExtraField() {
150150

151151
GobPieConfiguration actualGobPieConfiguration = gobPieConfReader.readGobPieConfiguration();
152152
assertTrue(systemOut.getLines().anyMatch(line -> line.contains("Reading GobPie configuration from json")));
153-
assertTrue(systemOut.getLines().anyMatch(line -> line.contains("GobPie configuration read from json")));
153+
verify(magpieServer).forwardMessageToClient(new MessageParams(MessageType.Error, "There was an unknown option in the GobPie configuration. Please check for any typos."));
154+
//assertTrue(systemOut.getLines().anyMatch(line -> line.contains("GobPie configuration read from json")));
154155
assertEquals(expectedGobPieConfiguration, actualGobPieConfiguration);
155156
}
156157

0 commit comments

Comments
 (0)