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