void testIgnoreElementCase() { expectLog( "ignore-element-case", "nested elementnested element"); } public void testTextElement() { expectLogContaining( "textelement", "Hello world"); } public void testTextTrim() { expectLogContaining( "text.trim", "[Hello world]");
void testText() { expectLog("text", "Inner Text"); } public void testDuplicateAttribute() { expectBuildException( "duplicate.attribute", "the attribute text has already been specified"); } public void testDuplicateElement() { expectBuildException( "duplicate.element", "the element text has already been specified");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MacroDefTest.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 testIgnoreElementCase() {
1
void testText() {
2
        expectLog(
2
        expectLog(
3
            "ignore-element-case",
4
            "nested elementnested element");
3
"text", "Inner Text");
5
    }
4
    }
6
    public void testTextElement() {
5
    public void testDuplicateAttribute() {
7
        expectLogContaining(
6
        expectBuildException(
8
            "textelement", "Hello worl
7
            "duplicate.attribute",
9
d");
8
            "the attribute text has already been specified");
10
    }
9
    }
11
    public void testTextTrim() {
10
    public void testDuplicateElement() {
12
        expectLogContaining(
11
        expectBuildException(
13
            "text.trim", "[Hello world]
12
            "duplicate.element",
14
");
13
            "the element text has already been specified");
15
    
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