public class LoaderRefTest extends BuildFileTest { public LoaderRefTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/core/loaderref/loaderref.xml"); } public void tearDown() { executeTarget("clean"); } // override allowed on <available> public void testBadRef() { expectBuildExceptionContaining("testbadref", "Should fail due to ref " + "not being a class loader", "does not reference a class loader");
public class NoNewLineTest extends BuildFileTest { public NoNewLineTest(String name) { super(name); } public void setUp() { configureProject("src/etc/testcases/filters/build.xml"); } public void tearDown() { executeTarget("cleanup"); } public void testNoAddNewLine() throws IOException { executeTarget("testNoAddNewLine");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/LoaderRefTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/NoNewLineTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class LoaderRefTest extends BuildFileTest {
1
public class NoNewLineTest extends BuildFileTest {
2
    public LoaderRefTest(String name) {
2
    public NoNewLineTest(String name) {
3
        super(name);
3
        super(name);
4
    }
4
    }
5
    public void setUp() {
5
    public void setUp() {
6
        configureProject("src/etc/testcases/core/loaderref/loaderref.xml");
6
        configureProject("src/etc/testcases/filters/build.xml");
7
    }
7
    }
8
    public void tearDown() {
8
    public void tearDown() {
9
        executeTarget("clean");
9
        executeTarget("cleanup");
10
    }
10
    }
11
    // override allowed on <available>
11
    
12
    public void testBadRef() {
12
public void testNoAddNewLine() throws IOException {
13
        expectBuildExceptionContaining("testbadref", "Should fail due to ref "
13
        exec
14
            + "not being a class loader", "does not reference a class loader");
14
uteTarget("testNoAddNewLine");
15
    
15
    
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