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());
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 0 |