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 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");
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/condition/IsFileSelectedTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNoop() {
1
void testSimple() {
2
        executeTarget("noop");
2
        executeTarget("simple");
3
    }
3
    }
4
    public void testCurrent() {
4
    public void testName() {
5
        executeTarget("current");
5
        executeTarget("name");
6
    }
6
    }
7
    public void testFaster() {
7
    public void testBaseDir() {
8
        executeTarget("faster");
8
        executeTarget("basedir");
9
    }
9
    }
10
    public void testSlower() {
10
    public void testType() {
11
        executeTarget("slower");
11
        executeTarget("type");
12
    }
12
    }
13
    public void testTooSlow() {
13
    public void testNotSelector() {
14
        expectBuildExceptionContaining(
14
        expectBuildExceptionContaining(
15
                "too_slow","out of range","out of the range 1-10
15
            "not.selector", "checking for use as a selector (not allowed)",
16
");
16
            "fileset doesn't support the nested \"isfile");
17
    
17
    
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