public class JakartaRegexpMatcherTest extends RegexpMatcherTest { public RegexpMatcher getImplementation() { return new JakartaRegexpMatcher(); } public JakartaRegexpMatcherTest(String name) { super(name); } 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 class JakartaRegexpRegexpTest extends RegexpTest { public Regexp getRegexpImplementation() { return new JakartaRegexpRegexp(); } public JakartaRegexpRegexpTest(String name) { super(name); } 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 class JakartaRegexpMatcherTest extends RegexpMatcherTest {
1
public class JakartaRegexpRegexpTest extends RegexpTest {
2
    public RegexpMatcher getImplementation() {
2
    public Regexp getRegexpImplementation() {
3
        return new JakartaRegexpMatcher();
3
        return new JakartaRegexpRegexp();
4
    }
4
    }
5
    public JakartaRegexpMatcherTest(String name) {
5
    public JakartaRegexpRegexpTest(String name) {
6
        super(name);
6
        super(name);
7
    }
7
    }
8
    public void testWindowsLineSeparator2() throws IOException {
8
    public void testWindowsLineSeparator2() throws IOException {
9
        try {
9
        try {
10
            super.testWindowsLineSeparator2();
10
            super.testWindowsLineSeparator2();
11
            fail("Should trigger when this bug is fixed. {@since 1.2}");
11
            fail("Should trigger when this bug is fixed. {@since 1.2}");
12
        } catch (AssertionFailedError e) {
12
        } catch (AssertionFailedError e){
13
        }
13
        }
14
    }
14
    }
15
    /**
15
    /**
16
     * Fails for the same reason as "default" mode in doEndTest2.
16
     * Fails for the same reason as "default" mode in doEndTest2.
17
     */
17
     */
18
    public void testUnixLineSeparator() throws IOException {
18
    public void testUnixLineSeparator() throws IOException {
19
        try {
19
        try {
20
            super.testUnixLineSeparator();
20
            super.testUnixLineSeparator();
21
            fail("Should trigger once this bug is fixed. {@since 1.2}");
21
            fail("Should trigger once this bug is fixed. {@since 1.2}");
22
        } catch (AssertionFailedError e) {
22
        } catch (AssertionFailedError e){
23
        }
23
        }
24
    }
24
    }
25
    /**
25
    /**
26
     * Fails for "default" mode.
26
     * Fails for "default" mode.
27
     */
27
     */
28
    protected void doEndTest2(String text) {}
28
    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