void testBadNoJarfile() { expectBuildExceptionContaining("test-bad-no-jarfile", "no-jarfile", "Missing 'jarfile' attribute!"); assertPropertyUnset("jar.classpath"); } public void testBadNoClassPath() { expectBuildExceptionContaining("test-bad-no-classpath", "no-classpath", "Missing nested <classpath>!"); assertPropertyUnset("jar.classpath");
void testBadDirectory() { expectBuildExceptionContaining("test-bad-directory", "bad-jar-dir", "Jar's directory not found:"); assertPropertyUnset("jar.classpath"); } public void testBadNoProperty() { expectBuildExceptionContaining("test-bad-no-property", "no-property", "Missing 'property' attribute!"); assertPropertyUnset("jar.classpath");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestClassPathTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testBadNoJarfile() {
1
void testBadDirectory() {
2
        expectBuildExceptionContaining("test-bad-no-jarfile", "no-jarfile",
2
        expectBuildExceptionContaining("test-bad-directory", "bad-jar-dir",
3
                                       "Missing 'jarfile' attribute!");
3
                                       "Jar's directory not found:");
4
        assertPropertyUnset("jar.classpath");
4
        assertPropertyUnset("jar.classpath");
5
    }
5
    }
6
    public void testBadNoClassPath() {
6
    public void testBadNoProperty() {
7
        expectBuildExceptionContaining("test-bad-no-classpath", "no-classpath",
7
        expectBuildExceptionContaining("test-bad-no-property", "no-property",
8
                                       "Missing nested <classpath>!");
8
                                       "Missing 'property' attribute!");
9
        assertPropertyUnset("jar.classpath");
9
        assertPropertyUnset("jar.classpath");
10
    
10
    
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 location
Number of node comparisons0