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