Fixes a test for the case of NullPointerException in the OPAL plug-in.
@@ -127,7 +127,10 @@ public class OPALPluginTest {
" \"date\":\"1521511260\"\n" +
"}");
- opalPlugin.consume(new ConsumerRecord<>(topic, 1, 0, "bar", mvnCoordinate.toString()), false);
+ var cg = opalPlugin.consume(new ConsumerRecord<>(topic, 1, 0, "bar", mvnCoordinate.toString()),
+ false);
+ cg.toJSON();
+
// TODO: An assert is pointless here. Because we need to find the root cause of the NullPointerException in PartialCallGraph class.
// This test shows that FASTEN URIs of a type's methods can be null! Check out the method toListOfString in ExtendedRevisionCallGraph class.
// The described problem is patched at the very high level with a if block!
