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 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/StyleTest.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 testTransferParameterEmpty() throws Exception {
2
        expectFileContains("testTransferParameterEmpty",
3
                           "out/out.xml",
4
                           "empty=''");
5
    }
1
void testTransferParameterUnset() throws Exception {
6
    public void testTransferParameterUnset() throws Exception {
2
        expectFileContains("testTransferParameterUnset",
7
        expectFileContains("testTransferParameterUnset",
3
                           "out/out.xml",
8
                           "out/out.xml",
4
                           "undefined='${value}'");
9
                           "undefined='${value}'");
5
    }
10
    }
6
    public void testTransferParameterUnsetWithIf() throws Exception {
11
    public void testTransferParameterUnsetWithIf() throws Exception {
7
        expectFileContains("testTransferParameterUnsetWithIf",
12
        expectFileContains("testTransferParameterUnsetWithIf",
8
                           "out/out.xml",
13
                           "out/out.xml",
9
                           "undefined='undefined default value'");
14
                           "undefined='undefined default value'");
10
    }
15
    
11
    public void testNewerStylesheet() throws Exception {
12
        expectFileContains("testNewerStylesheet",
13
                           "out/out.xml",
14
                           "new-value");
15
    
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