assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException); assertEquals("Wrong exception message.", "Specified class (java.lang.Object) is not an Algorithm.", e.getMessage());
assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException); assertEquals("Wrong exception message.", "Specified class (non.existent.custom.Algorithm) not found.", e.getMessage());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java
Method name: void testIllegalCustomAlgorithm() Method name: void testNonExistentCustomAlgorithm()
Number of AST nodes: 2 Number of AST nodes: 2
1
assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException);
1
assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException);
2
            assertEquals("Wrong exception message.",
2
            assertEquals("Wrong exception message.",
3
                         "Specified class (java.lang.Object) is not an Algorithm.",
3
                         "Specified class (non.existent.custom.Algorithm) not found.",
4
                         e.getMessage());
4
                         e.getMessage());
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons0