void testDocumentNoCatalog() { configureProject("src/etc/testcases/types/xmlcatalog.xml"); expectPropertySet("testdocumentnocatalog", "val3", "A stitch in time saves nine"); } // // Ensure that an external entity resolves as expected Using an // XMLCatalog: // // Transform an XML file that contains a reference to a _second_ XML file // via the document() function. The _second_ XML file refers to an entity. // The entity is listed in the XMLCatalog pointing to a different file. // Stuff result into the property: val4 // public void testDocumentWithCatalog() { configureProject("src/etc/testcases/types/xmlcatalog.xml"); expectPropertySet("testdocumentwithcatalog", "val4", "No news is good news");
void testEntityNoCatalog() { configureProject("src/etc/testcases/types/xmlcatalog.xml"); expectPropertySet("testentitynocatalog", "val1", "A stitch in time saves nine"); } // // Ensure that an external entity resolves as expected Using an // XMLCatalog: // // Transform an XML file that refers to the entity into a text // file, entity is listed in the XMLCatalog pointing to a // different file. Stuff result into property: val2 // public void testEntityWithCatalog() { configureProject("src/etc/testcases/types/xmlcatalog.xml"); expectPropertySet("testentitywithcatalog", "val2", "No news is good news");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/XMLCatalogBuildFileTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/XMLCatalogBuildFileTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testDocumentNoCatalog() {
1
void testEntityNoCatalog() {
2
        configureProject("src/etc/testcases/types/xmlcatalog.xml");
2
        configureProject("src/etc/testcases/types/xmlcatalog.xml");
3
        expectPropertySet("testdocumentnocatalog", "val3",
3
        expectPropertySet("testentitynocatalog", "val1",
4
                          "A stitch in time saves nine");
4
                          "A stitch in time saves nine");
5
    }
5
    }
6
    //
6
    //
7
    // Ensure that an external entity resolves as expected Using an
7
    // Ensure that an external entity resolves as expected Using an
8
    // XMLCatalog:
8
    // XMLCatalog:
9
    //
9
    //
10
    // Transform an XML file that contains a reference to a _second_ XML file
10
    // Transform an XML file that 
11
    // via the document() function.  The _second_ XML file refers to an entity.
11
refers to the entity into a text
12
    // The entity is listed in the XMLCatalog pointing to a
12
    // file, entity is listed in the XMLCatalog pointing to a
13
 different file.
13
    // different file.
14
    // Stuff result into the property: val4
14
  Stuff result into property: val2
15
    //
15
    //
16
    public void testDocumentWithCatalog() {
16
    public void testEntityWithCatalog() {
17
        configureProject("src/etc/testcases/types/xmlcatalog.xml");
17
        configureProject("src/etc/testcases/types/xmlcatalog.xml");
18
        expectPropertySet("testdocumentwithcatalog", "val4",
18
        expectPropertySet("testentitywithcatalog", "val2",
19
                          "No news is good news");
19
                          "No news is good news");
20
    
20
    
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