void testPreserveLastModified() { executeTarget("preserveLastModified"); } public void testFileset() { executeTarget("testFileset"); } public void testFilesetAndJar() { executeTarget("testFilesetAndJar"); } public void testFilesetAndSignedJar() { expectBuildExceptionContaining("testFilesetAndSignedJar", "incompatible attributes", SignJar.ERROR_SIGNEDJAR_AND_PATHS);
void testMapperFileset() { executeTarget("testMapperFileset"); } public void testDestDirPath() { executeTarget("testDestDirPath"); } public void testMapperPath() { executeTarget("testMapperPath"); } public void testMapperNoDest() { expectBuildExceptionContaining("testMapperNoDest", "two mappers", SignJar.ERROR_MAPPER_WITHOUT_DEST);
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 testPreserveLastModified() {
1
void testMapperFileset() {
2
        executeTarget("preserveLastModified");
2
        executeTarget("testMapperFileset");
3
    }
3
    }
4
    public void testFileset() {
4
    public void testDestDirPath() {
5
        executeTarget("testFileset");
5
        executeTarget("testDestDirPath");
6
    }
6
    }
7
    public void testFilesetAndJar() {
7
    public void testMapperPath() {
8
        executeTarget("testFilesetAndJar");
8
        executeTarget("testMapperPath");
9
    }
9
    }
10
    public void testFilesetAndSignedJar() {
10
    public void testMapperNoDest() {
11
        expectBuildExceptionContaining("testFilesetAndSignedJar",
11
        expectBuildExceptionContaining("testMapperNoDest",
12
                "incompatible attributes",
12
                "two mappers",
13
                SignJar.ERROR_SIGNEDJAR_AND_PATHS);
13
                SignJar.ERROR_MAPPER_WITHOUT_DEST);
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