/** Add tests for the unconnected method to the overall test suite. */ private void addTestSuiteFor$TestUnconnected(junit.framework.TestSuite overallTestSuite$) { junit.framework.TestSuite methodTests$ = this.emptyTestSuiteFor("unconnected"); try { org.jmlspecs.jmlunit.strategies.IndefiniteIterator receivers$iter = new org.jmlspecs.jmlunit.strategies.NonNullIteratorDecorator( this.vorg_jmlspecs_samples_digraph_SearchableDigraphIter("unconnected", 1)); this.check_has_data( receivers$iter, "new NonNullIteratorDecorator(this.vorg_jmlspecs_samples_digraph_SearchableDigraphIter(\"unconnected\", 1))"); while (!receivers$iter.atEnd()) { org.jmlspecs.jmlunit.strategies.IndefiniteIterator vorg_jmlspecs_samples_digraph_NodeType$1$iter = this.vorg_jmlspecs_samples_digraph_NodeTypeIter("unconnected", 0); this.check_has_data( vorg_jmlspecs_samples_digraph_NodeType$1$iter, "this.vorg_jmlspecs_samples_digraph_NodeTypeIter(\"unconnected\", 0)"); while (!vorg_jmlspecs_samples_digraph_NodeType$1$iter.atEnd()) { final org.jmlspecs.samples.digraph.SearchableDigraph receiver$ = (org.jmlspecs.samples.digraph.SearchableDigraph) receivers$iter.get(); final org.jmlspecs.samples.digraph.NodeType arg1 = (org.jmlspecs.samples.digraph.NodeType) vorg_jmlspecs_samples_digraph_NodeType$1$iter.get(); methodTests$.addTest(new TestUnconnected(receiver$, arg1)); vorg_jmlspecs_samples_digraph_NodeType$1$iter.advance(); } receivers$iter.advance(); } } catch (org.jmlspecs.jmlunit.strategies.TestSuiteFullException e$) { // methodTests$ doesn't want more tests } overallTestSuite$.addTest(methodTests$); }
/** Add tests for the SearchableDigraph contructor to the overall test suite. */ private void addTestSuiteFor$TestSearchableDigraph(junit.framework.TestSuite overallTestSuite$) { junit.framework.TestSuite methodTests$ = this.emptyTestSuiteFor("SearchableDigraph"); try { methodTests$.addTest(new TestSearchableDigraph()); } catch (org.jmlspecs.jmlunit.strategies.TestSuiteFullException e$) { // methodTests$ doesn't want more tests } overallTestSuite$.addTest(methodTests$); }
/** Add tests for the toString method to the overall test suite. */ private void addTestSuiteFor$TestToString(junit.framework.TestSuite overallTestSuite$) { junit.framework.TestSuite methodTests$ = this.emptyTestSuiteFor("toString"); try { org.jmlspecs.jmlunit.strategies.IndefiniteIterator receivers$iter = new org.jmlspecs.jmlunit.strategies.NonNullIteratorDecorator( this.vorg_jmlspecs_samples_digraph_SearchableDigraphIter("toString", 0)); this.check_has_data( receivers$iter, "new NonNullIteratorDecorator(this.vorg_jmlspecs_samples_digraph_SearchableDigraphIter(\"toString\", 0))"); while (!receivers$iter.atEnd()) { final org.jmlspecs.samples.digraph.SearchableDigraph receiver$ = (org.jmlspecs.samples.digraph.SearchableDigraph) receivers$iter.get(); methodTests$.addTest(new TestToString(receiver$)); receivers$iter.advance(); } } catch (org.jmlspecs.jmlunit.strategies.TestSuiteFullException e$) { // methodTests$ doesn't want more tests } overallTestSuite$.addTest(methodTests$); }
// @ requires overallTestSuite$ != null; public void addTestSuiteForEachMethod(junit.framework.TestSuite overallTestSuite$) { try { this.addTestSuiteFor$TestSearchableDigraph(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestDFS(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestDFSVisit(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestTranspose(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestAddNode(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestRemoveNode(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestAddArc(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestRemoveArc(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestIsNode(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestIsArc(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestIsAPath(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestToString(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } try { this.addTestSuiteFor$TestUnconnected(overallTestSuite$); } catch (java.lang.Throwable ex) { overallTestSuite$.addTest(new org.jmlspecs.jmlunit.strategies.ConstructorFailed(ex)); } }