Two failing doctests fixed

This commit is contained in:
Johan Andrén 2017-03-09 16:56:34 +01:00 committed by Konrad `ktoso` Malawski
parent 42fdf15d22
commit 0775fb4a56
2 changed files with 3 additions and 3 deletions

View file

@ -99,8 +99,8 @@ public class GraphDSLDocTest extends AbstractJavaTest {
// unconnected zip.out (!) => "The inlets [] and outlets [] must correspond to the inlets [] and outlets [ZipWith2.out]"
//#simple-graph
org.junit.Assert.fail("expected IllegalArgumentException");
} catch (IllegalArgumentException e) {
assertTrue(e != null && e.getMessage() != null && e.getMessage().contains("must correspond to"));
} catch (IllegalStateException e) {
assertTrue(e != null && e.getMessage() != null && e.getMessage().contains("ZipWith2.out"));
}
}