void testTestBzip2TarTask() throws java.io.IOException { testLogoExtraction("testBzip2TarTask"); } public void testSrcDirTest() { expectBuildException("srcDirTest", "Src cannot be a directory."); } public void testEncoding() { expectSpecificBuildException("encoding", "<untar> overrides setEncoding.", "The untar task doesn't support the " + "encoding attribute");
void tearDown() { executeTarget("cleanup"); } public void testBasic() { expectPropertySet("basic","basic"); } public void testConditionIncomplete() { expectSpecificBuildException("condition-incomplete", "property attribute has been omitted", "The property attribute is required.");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/UntarTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ConditionTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testTestBzip2TarTask() throws java.io.IOException {
1
void te
2
        testLogoExtraction("testBzip2TarTask
2
arDown() {
3
");
3
        executeTarget("cleanup");
4
    }
4
    }
5
    public void testSrcDirTest() {
5
    public void testBasic() {
6
        expectBuildException("srcDirTest", "Src cannot be a directory.");
6
       expectPropertySet("basic","basic");
7
    }
7
    }
8
    public void testEncoding() {
8
    public void testConditionIncomplete() {
9
        expectSpecificBuildException("encoding",
9
        expectSpecificBuildException("condition-incomplete",
10
                                     "<untar> overrides setEncoding.",
10
                                     "property attribute has been omitted",
11
                                     "The untar task doesn't support the "
11
                                     "The 
12
                                     + "encoding attribute");
12
property attribute is required.");
13
    
13
    
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