void setUp() { configureProject(TASKDEFS_DIR + "xmlvalidate.xml"); } /** * The teardown method for JUnit */ public void tearDown() {} /** * Basic inline 'dtd' element test. */ public void testValidate() throws Exception { executeTarget("testValidate"); } /** * Test indirect validation. */ public void testDeepValidate() throws Exception { executeTarget("testDeepValidate"); } /** * */ public void testXmlCatalog() { executeTarget("xmlcatalog"); } /** * */ public void testXmlCatalogViaRefid() { executeTarget("xmlcatalogViaRefid"); } /** * Test that the nested dtd element is used when resolver.jar is not * present. This test should pass either way. */ public void testXmlCatalogFiles() { executeTarget("xmlcatalogfiles-override"); } /** * Test nested catalogpath. * Test that the nested dtd element is used when resolver.jar is not * present. This test should pass either way. */ public void testXmlCatalogPath() { executeTarget("xmlcatalogpath-override"); } /** * Test nested xmlcatalog definitions */ public void testXmlCatalogNested() { executeTarget("xmlcatalognested"); }
void setUp() { configureProject(TASKDEFS_DIR + "dotnet.xml"); } /** * The teardown method for JUnit */ public void tearDown() { executeTarget("teardown"); } /** * A unit test for JUnit */ public void testCSC() throws Exception { executeTarget("testCSC"); } /** * A unit test for JUnit */ public void testCSCintrinsicFileset() throws Exception { executeTarget("testCSCintrinsicFileset"); } /** * A unit test for JUnit */ public void testCSCdll() throws Exception { executeTarget("testCSCdll"); } /** * A unit test for JUnit */ public void testCscReferences() throws Exception { executeTarget("testCscReferences"); } /** * A unit test for JUnit */ public void testCscResources() throws Exception { executeTarget("testCSCResources"); } /** * test we can assemble */ public void testILASM() throws Exception { executeTarget("testILASM"); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/DotnetTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setUp() {
1
void setUp() {
2
        configureProject(TASKDEFS_DIR + "xmlvalidate.xml");
2
        configureProject(TASKDEFS_DIR + "dotnet.xml");
3
    }
3
    }
4
    /**
4
    /**
5
     * The teardown method for JUnit
5
     * The teardown method for JUnit
6
     */
6
     */
7
    public void tearDown() {}
7
    public void tearDown() {
8
    /**
9
     * Basic inline 'dtd' element test.
8
        executeTarget("teardown");
9
    }
10
    /**
11
     * A unit test for JUnit
10
     */
12
     */
11
    public void testValidate() throws Exception {
13
    public void testCSC() throws Exception {
12
        executeTarget("testValidate");
14
        executeTarget("testCSC");
13
    }
15
    }
14
    /**
16
    /**
15
     * Test indirect validation.
17
     * A unit test for JUnit
16
     */
18
     */
17
    public void testDeepValidate() throws Exception {
19
    public void testCSCintrinsicFileset() throws Exception {
18
        executeTarget("testDeepValidate");
20
        executeTarget("testCSCintrinsicFileset");
19
    }
21
    }
20
    /**
22
    /**
21
     *
23
     *
22
     */
23
    public void testXmlCatalog() {
24
        executeTarget("xmlcatalog");
25
    }
26
    /**
27
     *
24
 A unit test for JUnit
28
     */
25
     */
29
    public void testXmlCatalogViaRefid() {
26
    public void testCSCdll() throws Exception {
30
        executeTarget("xmlcatalogViaRefid");
27
        executeTarget("testCSCdll");
31
    }
28
    }
32
    /**
29
    /**
33
     * Test that the nested dtd element is used when resolver.jar is not
30
     * 
34
     * present.  This test should pass either way.
35
     */
36
    public void testXmlCatalogFiles()
31
A unit test for JUnit
32
     */
37
 {
33
    public void testCscReferences() throws Exception {
38
        executeTarget("xmlcatalogfiles-override");
34
        executeTarget("testCscReferences");
39
    }
35
    }
40
    /**
36
    /**
41
     * Test nested catalogpath.
37
     * 
42
     * Test that the nested dtd element is used when resolver.jar is not
43
     * present.  This test should pass either way.
44
     */
45
    public void testXmlCatalogPath()
38
A unit test for JUnit
39
     */
46
 {
40
    public void testCscResources() throws Exception {
47
        executeTarget("xmlcatalogpath-override");
41
        executeTarget("testCSCResources");
48
    }
42
    }
49
    /**
43
    /**
50
     * Test nested xmlcatalog definitions
44
     * test we can assemble
51
     */
45
     */
52
    public void testXmlCatalogNested() {
46
    public void testILASM() throws Exception {
53
        executeTarget("xmlcatalognested");
47
        executeTarget("testILASM");
54
    }
48
    }
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