void testTaskThatIsntDefined() { expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined"); } public void testTaskThatDoesntReallyExist() { expectPropertyUnset("testTaskThatDoesntReallyExist", "testTaskThatDoesntReallyExist"); } public void testType() { expectPropertySet("testType", "testType"); } public void testPreset() { expectPropertySet("testPreset", "testPreset");
void testIgnoreCase() { expectLog( "ignorecase", "a is ab is b"); } public void testIgnoreElementCase() { expectLog( "ignore-element-case", "nested elementnested element"); } public void testTextElement() { expectLogContaining( "textelement", "Hello world"); } public void testTextTrim() { expectLogContaining( "text.trim", "[Hello world]");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/TypeFoundTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTaskThatIsntDefined() {
1
void test
2
        expectPropertyUnset("testTaskThatIsntDefined", "testTaskThatIsntDefined
2
IgnoreCase() {
3
        expectLog(
4
            "ignorecase",
3
");
5
            "a is ab is b");
4
    }
6
    }
5
    public void testTaskThatDoesntReallyExist() {
7
    public void test
6
        expectPropertyUnset("testTaskThatDoesntReallyExist",
8
IgnoreElementCase() {
9
        expectLog(
10
            "ignore-element-case",
7
 "testTaskThatDoesntReallyExist");
11
            "nested elementnested element");
8
    }
12
    }
9
    public void testType() {
13
    public void testTextElement() {
10
        expectPropertySet("testType", "testType
14
        expectLogContaining(
11
");
15
            "textelement", "Hello world");
12
    }
16
    }
13
    public void testPreset() {
17
    public void testTextTrim() {
14
        expectPropertySet("testPreset", "testPreset
18
        expectLogContaining(
15
");
19
            "text.trim", "[Hello world]");
16
    
20
    
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