public void testWindowsLineSeparator2() throws IOException { try { super.testWindowsLineSeparator2(); fail("Should trigger when this bug is fixed. {@since 1.2}"); } catch (AssertionFailedError e) { } } /** * Fails for the same reason as "default" mode in doEndTest2. */ public void testUnixLineSeparator() throws IOException { try { super.testUnixLineSeparator(); fail("Should trigger once this bug is fixed. {@since 1.2}"); } catch (AssertionFailedError e) { } } /** * Fails for "default" mode. */ protected void doEndTest2(String text) {
public void testWindowsLineSeparator2() throws IOException { try { super.testWindowsLineSeparator2(); fail("Should trigger when this bug is fixed. {@since 1.2}"); } catch (AssertionFailedError e){ } } /** * Fails for the same reason as "default" mode in doEndTest2. */ public void testUnixLineSeparator() throws IOException { try { super.testUnixLineSeparator(); fail("Should trigger once this bug is fixed. {@since 1.2}"); } catch (AssertionFailedError e){ } } /** * Fails for "default" mode. */ protected void doEndTest2(String text) {
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/JakartaRegexpRegexpTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void testWindowsLineSeparator2() throws IOException {
1
public void testWindowsLineSeparator2() throws IOException {
2
        try {
2
        try {
3
            super.testWindowsLineSeparator2();
3
            super.testWindowsLineSeparator2();
4
            fail("Should trigger when this bug is fixed. {@since 1.2}");
4
            fail("Should trigger when this bug is fixed. {@since 1.2}");
5
        } catch (AssertionFailedError e) {
5
        } catch (AssertionFailedError e){
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Fails for the same reason as "default" mode in doEndTest2.
9
     * Fails for the same reason as "default" mode in doEndTest2.
10
     */
10
     */
11
    public void testUnixLineSeparator() throws IOException {
11
    public void testUnixLineSeparator() throws IOException {
12
        try {
12
        try {
13
            super.testUnixLineSeparator();
13
            super.testUnixLineSeparator();
14
            fail("Should trigger once this bug is fixed. {@since 1.2}");
14
            fail("Should trigger once this bug is fixed. {@since 1.2}");
15
        } catch (AssertionFailedError e) {
15
        } catch (AssertionFailedError e){
16
        }
16
        }
17
    }
17
    }
18
    /**
18
    /**
19
     * Fails for "default" mode.
19
     * Fails for "default" mode.
20
     */
20
     */
21
    protected void doEndTest2(String text) {
21
    protected void doEndTest2(String text) {
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