void testRunFailFoeFork() { expectBuildExceptionContaining("testRunFailFoeFork", "java failures being propagated", "Java returned:"); } public void testExcepting() { expectLogContaining("testExcepting", "Exception raised inside called program"); } public void testExceptingFork() { expectLogContaining("testExceptingFork", "Java Result:");
void testNoResourceOnErrorFailAll(){ this.expectBuildExceptionContaining("noresourcefailall","the requested resource does not exist","Could not load definitions from resource "); } public void testNoResourceOnErrorFail(){ expectLogContaining("noresourcefail","Could not load definitions from resource "); } public void testNoResourceOnErrorNotFail(){ expectLogContaining("noresourcenotfail","Could not load definitions from resource ");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/TypedefTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testRunFailFoeFork() {
1
void testNoResourceOnErrorFailAll(){
2
        expectBuildExceptionContaining("testRunFailFoeFork",
2
    		this.expectBuildExceptionContaining("
3
            "java failures being propagated",
4
            "Java returned:");
3
noresourcefailall","the requested resource does not exist","Could not load definitions from resource ");
5
    }
4
    }
5
    
6
    public void testExcepting() {
6
    public void testNoResourceOnErrorFail(){
7
        expectLogContaining("testExcepting",
7
		expectLogContaining("
8
                            "Exception raised inside called program");
8
noresourcefail","Could not load definitions from resource ");
9
    }
9
    }
10
    
10
    public void testExceptingFork() {
11
    public void testNoResourceOnErrorNotFail(){
11
        expectLogContaining("testExceptingFork",
12
    		expectLogContaining("
12
                            "Java Result:");
13
noresourcenotfail","Could not load definitions from resource ");
13
    
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