void testXml() { expectOutputContaining( "xml", "<DependsUpon>"); } /** * Test fork * - forked output goes to log */ public void testFork() { expectLogContaining( "fork", "Package: org.apache.tools.ant.util.facade"); } /** * Test fork xml */ public void testForkXml() { expectLogContaining( "fork-xml", "<DependsUpon>");
void testDuplicateTextName2() { expectBuildException( "duplicatetextname2", "the attribute name \"text\" has already been used by the text element"); } public void testEscape() { expectLog( "escape", "a@b or a@b is avalue@bvalue"); } public void testAttributeDescription() { expectLog( "attribute.description", "description is hello world");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.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 testXml() {
1
void testDuplicateTextName2() {
2
        expectOutputContaining(
2
        expect
3
            "xml", "<DependsUpon>");
3
BuildException(
4
            "duplicatetextname2",
4
    }
5
    
5
    /**
6
    
6
     * Test fork
7
     * - forked output goes to log
7
    "the attribute name \"text\" has already been used by the text element");
8
     */
8
    }
9
    public void testFork() {
9
    public void testEscape() {
10
        expectLogContaining(
10
        expectLog(
11
            "fork", "Package: org.apache.tools.ant.util.facade");
11
            "escape",
12
    }
12
    
13
    /**
13
    
14
     * Test fork xml
14
    "a@b or a@b is avalue@bvalue");
15
     */
15
    }
16
    public void testForkXml() {
16
    public void testAttributeDescription() {
17
        expectLogContaining(
17
        expectLog(
18
            "fork-xml", "<DependsUpon>
18
            "attribute.description",
19
");
19
            "description is hello world");
20
    
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