void testNoop() { executeTarget("noop"); } public void testCurrent() { executeTarget("current"); } public void testFaster() { executeTarget("faster"); } public void testSlower() { executeTarget("slower"); } public void testTooSlow() { expectBuildExceptionContaining( "too_slow","out of range","out of the range 1-10");
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/NiceTest.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 testNoop() {
1
void testMappedFileset() {
2
        executeTarget("noop");
2
        executeTarget("
3
    }
4
    public void testCurrent() {
5
        executeTarget("current");
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 testFaster() {
14
    public void testMappedFilelist() {
8
        executeTarget("faster");
15
        executeTarget("
9
    }
16
testMappedFilelist");
17
    }
18
    /**
19
     * test the pattern attribute
20
     */
10
    public void testSlower() {
21
    public void testGoodPattern() {
11
        executeTarget("slower");
22
        executeTarget("testGoodPattern");
12
    }
23
    }
24
    /**
25
     * test the pattern attribute again
26
     */
13
    public void testTooSlow() {
27
    public void testBadPattern() {
14
        expectBuildExceptionContaining(
28
        expectBuildExceptionContaining(
15
                "too_slow","out of range","out of the range 1-10
29
"testBadPattern",
16
");
30
            "No parsing exception thrown", "Unparseable");
17
    
31
    
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