void testTransferParameterSet() throws Exception { expectFileContains("testTransferParameterSet", // target "out/out.xml", // file "set='myvalue'"); // exptected string } public 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'");
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'"); } public void testNewerStylesheet() throws Exception { expectFileContains("testNewerStylesheet", "out/out.xml", "new-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 testTransferParameterSet() throws Exception {
2
        expectFileContains("testTransferParameterSet",  // target
3
                           "out/out.xml",               // file
4
                           "set='myvalue'");            // exptected string
5
    }
6
    public void testTransferParameterEmpty() throws Exception {
1
void testTransferParameterEmpty() throws Exception {
7
        expectFileContains("testTransferParameterEmpty",
2
        expectFileContains("testTransferParameterEmpty",
8
                           "out/out.xml",
3
                           "out/out.xml",
9
                           "empty=''");
4
                           "empty=''");
10
    }
5
    }
11
    public void testTransferParameterUnset() throws Exception {
6
    public void testTransferParameterUnset() throws Exception {
12
        expectFileContains("testTransferParameterUnset",
7
        expectFileContains("testTransferParameterUnset",
13
                           "out/out.xml",
8
                           "out/out.xml",
14
                           "undefined='${value}'");
9
                           "undefined='${value}'");
15
    }
10
    }
16
    public void testTransferParameterUnsetWithIf() throws Exception {
11
    public void testTransferParameterUnsetWithIf() throws Exception {
17
        expectFileContains("testTransferParameterUnsetWithIf",
12
        expectFileContains("testTransferParameterUnsetWithIf",
18
                           "out/out.xml",
13
                           "out/out.xml",
19
                           "undefined='undefined default value'");
14
                           "undefined='undefined default value'");
20
    
15
    }
16
    public void testNewerStylesheet() throws Exception {
17
        expectFileContains("testNewerStylesheet",
18
                           "out/out.xml",
19
                           "new-value");
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