void testNamespaces() throws Exception { executeTarget("testNamespaces"); } public void testPropertyNoValue() throws Exception { expectBuildExceptionContaining("testPropertyNoValue", ParserSupports.ERROR_NO_VALUE, ParserSupports.ERROR_NO_VALUE); } public void testUnknownProperty() throws Exception { executeTarget("testUnknownProperty"); } public void NotestPropertyInvalid() throws Exception { executeTarget("testPropertyInvalid"); } public void NotestXercesProperty() throws Exception { executeTarget("testXercesProperty");
void testFixFile() throws Exception { executeTarget("testFixFile"); } public void testFixFileExclusive() throws Exception { expectBuildExceptionContaining("testFixFileExclusive", FixCRLF.ERROR_FILE_AND_SRCDIR, FixCRLF.ERROR_FILE_AND_SRCDIR); } /** * Bugzilla Report 20840 * * Will fail with an exception if the parent directories do not * get created. */ public void testCreateParentDirs() { executeTarget("createParentDirs"); } public void testPreserveLastModified() { executeTarget("testPreserveLastModified"); } public void testFilter1() { executeTarget("testFilter1");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/condition/ParserSupportsTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/FixCrLfTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testNamespaces() throws Exception {
1
void testFixFile() throws Exception {
2
        executeTarget("testNamespaces");
2
        executeTarget("testFixFile");
3
    }
3
    }
4
    public void testPropertyNoValue() throws Exception {
4
    public void testFixFileExclusive() throws Exception {
5
        expectBuildExceptionContaining("testPropertyNoValue",
5
        expectBuildExceptionContaining("testFixFileExclusive",
6
                ParserSupports.ERROR_NO_VALUE,
6
                FixCRLF.ERROR_FILE_AND_SRCDIR, FixCRLF.ERROR_FILE_AND_SRCDIR);
7
    }
8
    /**
9
     * Bugzilla Report 20840
7
     
10
     *
8
           ParserSupports.ERROR_NO_VALUE);
11
     * Will fail with an exception if the parent directories do not
12
     * get created.
9
    }
13
    
14
 */
10
    public void testUnknownProperty() throws Exception {
15
    public void testCreateParentDirs() {
11
        executeTarget("testUnknownProperty");
16
        executeTarget("createParentDirs");
12
    }
17
    }
13
    public void NotestPropertyInvalid() throws Exception {
18
    public void testPreserveLastModified() {
14
        executeTarget("testPropertyInvalid");
19
        executeTarget("testPreserveLastModified");
15
    }
20
    }
16
    public void NotestXercesProperty() throws Exception {
21
    public void testFilter1() {
17
        executeTarget("testXercesProperty");
22
        executeTarget("testFilter1");
18
    
23
    
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