void testSimple() { executeTarget("simple"); } public void testName() { executeTarget("name"); } public void testBaseDir() { executeTarget("basedir"); } public void testType() { executeTarget("type"); } public void testNotSelector() { expectBuildExceptionContaining( "not.selector", "checking for use as a selector (not allowed)", "fileset doesn't support the nested \"isfile"); }
void testMappedFileset() { executeTarget("testMappedFileset"); } /** * test the explicit mapped file set */ public void testExplicitMappedFileset() { executeTarget("testExplicitMappedFileset"); } /** * test the mapped file list */ public void testMappedFilelist() { executeTarget("testMappedFilelist"); } /** * test the pattern attribute */ public void testGoodPattern() { executeTarget("testGoodPattern"); } /** * test the pattern attribute again */ public void testBadPattern() { expectBuildExceptionContaining("testBadPattern", "No parsing exception thrown", "Unparseable"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsFileSelectedTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/TouchTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testSimple() {
1
void testMappedFileset() {
2
        executeTarget("simple");
2
        executeTarget("
3
    }
4
    public void testName() {
5
        executeTarget("name");
6
    }
3
testMappedFileset");
4
    }
5
    /**
6
     * test the explicit mapped file set
7
     */
8
    public void testExplicitMappedFileset() {
9
        executeTarget("testExplicitMappedFileset");
10
    }
11
    /**
12
     * test the mapped file list
13
     */
7
    public void testBaseDir() {
14
    public void testMappedFilelist() {
8
        executeTarget("basedir");
15
        executeTarget("
9
    }
16
testMappedFilelist");
17
    }
18
    /**
19
     * test the pattern attribute
20
     */
10
    public void testType() {
21
    public void testGoodPattern() {
11
        executeTarget("type");
22
        executeTarget("t
12
    }
23
estGoodPattern");
24
    }
25
    /**
26
     * test the pattern attribute again
27
     */
13
    public void testNotSelector() {
28
    public void testBadPattern() {
14
        expectBuildExceptionContaining(
29
        expectBuildExceptionContaining(
15
            "not.selector", "checking for use as a selector (not allowed)",
16
            "fileset doesn't support the nested \"isfi
30
"testBadPattern",
17
le");
31
            "No parsing exception thrown", "Unparseable");
18
    }
32
    }
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