void testVerifyJarUnsigned() { expectBuildExceptionContaining("testVerifyJarUnsigned", "unsigned JAR file", VerifyJar.ERROR_NO_VERIFY); } public void NotestVerifyJarNotInKeystore() { expectBuildExceptionContaining("testVerifyJarNotInKeystore", "signature not in keystore", VerifyJar.ERROR_NO_VERIFY); } public void testVerifyFileset() { executeTarget("testVerifyFileset");
void testDestDirAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testDestDirAndSignedJar2() { expectBuildExceptionContaining("testPathAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testDestDirFileset() { executeTarget("testDestDirFileset");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SignJarTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testVerifyJarUnsigned() {
1
void testDestDirAndSignedJar() {
2
        expectBuildExceptionContaining("testVerifyJarUnsigned",
2
        expectBuildExceptionContaining("testFilesetAndSignedJar",
3
                "unsigned JAR file",
3
                "incompatible attributes",
4
                VerifyJar.ERROR_NO_VERIFY);
4
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
5
    }
5
    }
6
    public void NotestVerifyJarNotInKeystore() {
6
    public void testDestDirAndSignedJar2() {
7
        expectBuildExceptionContaining("testVerifyJarNotInKeystore",
7
        expectBuildExceptionContaining("test
8
                "signature not in keystore
8
PathAndSignedJar",
9
",
9
                "incompatible attributes",
10
                VerifyJar.ERROR_NO_VERIFY);
10
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
11
    }
11
    }
12
    public void testVerifyFileset() {
12
    public void testDestDirFileset() {
13
        executeTarget("testVerifyFileset");
13
        executeTarget("testDestDirFileset");
14
    
14
    
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