class Jdk14RegexpRegexpTest extends RegexpTest { public Regexp getRegexpImplementation() { return new Jdk14RegexpRegexp(); } public Jdk14RegexpRegexpTest(String name) { super(name); } public void testParagraphCharacter() throws IOException { try { super.testParagraphCharacter(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testLineSeparatorCharacter() throws IOException { try { super.testLineSeparatorCharacter(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testStandaloneCR() throws IOException { try { super.testStandaloneCR(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testWindowsLineSeparator() throws IOException { try { super.testWindowsLineSeparator(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } }
class Jdk14RegexpMatcherTest extends RegexpMatcherTest { public RegexpMatcher getImplementation() { return new Jdk14RegexpMatcher(); } public Jdk14RegexpMatcherTest(String name) { super(name); } public void testParagraphCharacter() throws IOException { try { super.testParagraphCharacter(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testLineSeparatorCharacter() throws IOException { try { super.testLineSeparatorCharacter(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testStandaloneCR() throws IOException { try { super.testStandaloneCR(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } } public void testWindowsLineSeparator() throws IOException { try { super.testWindowsLineSeparator(); fail("Should trigger once fixed. {@since JDK 1.4RC1}"); } catch (AssertionFailedError e){ } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpRegexpTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
class Jdk14RegexpRegexpTest extends RegexpTest {
1
class Jdk14RegexpMatcherTest extends RegexpMatcherTest {
2
    public Regexp getRegexpImplementation() {
2
    public RegexpMatcher getImplementation() {
3
        return new Jdk14RegexpRegexp();
3
        return new Jdk14RegexpMatcher();
4
    }
4
    }
5
    public Jdk14RegexpRegexpTest(String name) {
5
    public Jdk14RegexpMatcherTest(String name) {
6
        super(name);
6
        super(name);
7
    }
7
    }
8
    public void testParagraphCharacter() throws IOException {
8
    public void testParagraphCharacter() throws IOException {
9
        try {
9
        try {
10
            super.testParagraphCharacter();
10
            super.testParagraphCharacter();
11
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
11
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
12
        } catch (AssertionFailedError e){
12
        } catch (AssertionFailedError e){
13
        }
13
        }
14
    }
14
    }
15
    public void testLineSeparatorCharacter() throws IOException {
15
    public void testLineSeparatorCharacter() throws IOException {
16
        try {
16
        try {
17
            super.testLineSeparatorCharacter();
17
            super.testLineSeparatorCharacter();
18
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
18
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
19
        } catch (AssertionFailedError e){
19
        } catch (AssertionFailedError e){
20
        }
20
        }
21
    }
21
    }
22
    public void testStandaloneCR() throws IOException {
22
    public void testStandaloneCR() throws IOException {
23
        try {
23
        try {
24
            super.testStandaloneCR();
24
            super.testStandaloneCR();
25
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
25
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
26
        } catch (AssertionFailedError e){
26
        } catch (AssertionFailedError e){
27
        }
27
        }
28
    }
28
    }
29
    public void testWindowsLineSeparator() throws IOException {
29
    public void testWindowsLineSeparator() throws IOException {
30
        try {
30
        try {
31
            super.testWindowsLineSeparator();
31
            super.testWindowsLineSeparator();
32
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
32
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
33
        } catch (AssertionFailedError e){
33
        } catch (AssertionFailedError e){
34
        }
34
        }
35
    }
35
    }
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