Menu

#61 ModelJUnit GUI generates incorrect print graph code

open
modeljunit (2)
5
2008-08-07
2008-08-07
Mark Utting
No

When I turn on the "Print Graph" option in the design panel of the ModelJUnit GUI, it generates the following code (in the Code Viewer), which is incorrect because the 'graph' variable is not declared and initialized.

import net.sourceforge.czt.modeljunit.*;

public class SimpleSetTester
{
public static void main(String args[])
{
SimpleSet model = new SimpleSet();
Tester tester = new RandomTester(model);
tester.addListener("verbose", new VerboseListener(tester.getModel()));

tester.generate(10);
graph.printGraphDot("map.dot");
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.