void testTransferParameterUnset() throws Exception { expectFileContains("testTransferParameterUnset", "out/out.xml", "undefined='${value}'"); } public void testTransferParameterUnsetWithIf() throws Exception { expectFileContains("testTransferParameterUnsetWithIf", "out/out.xml", "undefined='undefined default value'"); } public void testNewerStylesheet() throws Exception { expectFileContains("testNewerStylesheet", "out/out.xml", "new-value");
void testEmpty() { expectBuildExceptionContaining("testEmpty", "missing property", "property"); } public void testNoProperty() { expectBuildExceptionContaining("testNoProperty", "missing property", "property"); } public void testNoFile() { expectBuildExceptionContaining("testNoFile", "missing file", "file");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/StyleTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/MakeUrlTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTransferParameterUnset() throws Exception {
1
void testEmpty() {
2
        expectFileContains("testTransferParameterUnset",
2
        expectBuildExceptionContaining("test
3
                           "out/out.xml",
4
                           "undefined='${value}'");
5
    }
6
    public void testTransferParameterUnsetWithIf() throws Exception
3
Empty", "missing property", "property");
4
    }
7
 {
5
    public void testNoProperty() {
8
        expectFileContains("testTransferParameterUnsetWithIf",
6
        expectBuildExceptionContaining("test
9
                           "out/out.xml",
10
                           "undefined='undefined default value'");
11
    }
12
    public void testNewerStylesheet() throws Exception
7
NoProperty", "missing property", "property");
8
    }
13
 {
9
    public void testNoFile() {
14
        expectFileContains("testNewerStylesheet",
10
        expectBuildExceptionContaining("testN
15
                           "out/out.xml",
16
                           "new-value");
11
oFile", "missing file", "file");
17
    
12
    
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