diff --git a/spoon-control-flow/src/test/java/fr/inria/controlflow/ForwardFlowBuilderVisitorTest.java b/spoon-control-flow/src/test/java/fr/inria/controlflow/ForwardFlowBuilderVisitorTest.java index 10bf37001d8..d29e8d99276 100644 --- a/spoon-control-flow/src/test/java/fr/inria/controlflow/ForwardFlowBuilderVisitorTest.java +++ b/spoon-control-flow/src/test/java/fr/inria/controlflow/ForwardFlowBuilderVisitorTest.java @@ -180,7 +180,7 @@ public void testSwitchImplicitDefault() throws Exception { ControlFlowNode entryNode = pathHelper.findNodeByString(graph, "int b = 0"); ControlFlowNode caseNode = pathHelper.findNodeByString(graph, "b = 1"); boolean canAvoid = pathHelper.canAvoidNode(entryNode, caseNode); - assertTrue(canAvoid); + assertTrue(canAvoid, "Path for implicit default case missing"); } @Test @@ -190,7 +190,7 @@ public void testMultipleCaseExpressions() throws Exception { ControlFlowPathHelper pathHelper = new ControlFlowPathHelper(); ControlFlowNode startNode = pathHelper.findNodeByString(graph, "int b = 0"); List> paths = pathHelper.paths(startNode); - assertTrue(paths.size() > 2); + assertTrue(paths.size() > 2, "Not enough paths. Possibly missing different paths from multiple expressions for a case"); } //Test some mixed conditions