void testRunAdapter() { expectLogContaining("runadapter", "MyRunnable called"); } public void testRunAdapterError() { expectBuildExceptionContaining( "runadaptererror", "xx", "No public run() method in"); } public void testDelay() { expectLogContaining("delay", "MyTask called"); } public void testOnErrorReport() { expectLogContaining("onerror.report", "MyTaskNotPresent cannot be found");
void testConditionConditionType() { expectLogContaining("condition.condition.type", "My Condition eval"); } public void testConditionConditionTask() { expectBuildExceptionContaining( "condition.condition.task", "task masking condition", "doesn't support the nested"); } public void testAddConfigured() { expectLogContaining( "myaddconfigured", "value is Value Setexecute: value is Value Set"); } public void testAddConfiguredValue() { expectLogContaining( "myaddconfiguredvalue", "value is Value Setexecute: value is Value Set");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/AddTypeTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testRunAdapter() {
1
void testConditionConditionType() {
2
        expectLogContaining("runadapter", "MyRunnable called");
2
        expectLogContaining("condition.condition.type", "My Condition eval");
3
    }
3
    }
4
    public void testRunAdapterError() {
4
    public void testConditionConditionTask() {
5
        expectBuildExceptionContaining(
5
        expectBuildExceptionContaining(
6
            "runadaptererror", "xx", "No public run() method in
6
            "condition.condition.task", "task masking condition",
7
");
7
            "doesn't support the nested");
8
    }
8
    }
9
    public void testDelay() {
9
    public void testAddConfigured() {
10
        expectLogContaining("delay", "MyTask called
10
        expectLogContaining(
11
");
11
            "myaddconfigured", "value is Value Setexecute: value is Value Set");
12
    }
12
    }
13
    public void testOnErrorReport() {
13
    public void testAddConfiguredValue() {
14
        expectLogContaining("onerror.report",
14
        expectLogContaining(
15
                            "MyTaskNotPresent cannot be found
15
            "myaddconfiguredvalue",
16
");
16
            "value is Value Setexecute: value is Value Set");
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