void testFileset() { executeTarget("testFileset"); } public void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testPath() { executeTarget("testPath");
void testPath() { executeTarget("testPath"); } public void testPathAndJar() { executeTarget("testPathAndJar"); } public void testPathAndSignedJar() { expectBuildExceptionContaining("testPathAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS); } public void testSignedJar() { executeTarget("testSignedJar");
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 testFileset() {
1
void testPath() {
2
        executeTarget("testFileset");
2
        executeTarget("testPath");
3
    }
3
    }
4
    public void testFilesetAndJar() {
4
    public void testPathAndJar() {
5
        executeTarget("testFilesetAndJar");
5
        executeTarget("testPathAndJar");
6
    }
6
    }
7
    public void testFilesetAndSignedJar() {
7
    public void testPathAndSignedJar() {
8
        expectBuildExceptionContaining("testFilesetAndSignedJar",
8
        expectBuildExceptionContaining("testPathAndSignedJar",
9
                "incompatible attributes",
9
                "incompatible attributes",
10
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
10
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
11
    }
11
    }
12
    public void testPath() {
12
    public void testSignedJar() {
13
        executeTarget("testPath");
13
        executeTarget("testSignedJar");
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