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) { }
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){ }
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/Jdk14RegexpMatcherTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testWindowsLineSeparator2() throws IOException {
1
void testParagraphCharacter() throws IOException {
2
        try {
2
        try {
3
            super.testWindowsLineSeparator2();
3
            super.testParagraphCharacter();
4
            fail("Should trigger when this bug is fixed. {@since 1.2}");
4
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
5
        } catch (AssertionFailedError e) {
5
        } catch (AssertionFailedError e){
6
        }
6
        }
7
    }
7
    }
8
    /**
9
     * Fails for the same reason as "default" mode in doEndTest2.
10
     */
11
    public void testUnixLineSeparator() throws IOException {
8
    public void testLineSeparatorCharacter() throws IOException {
12
        try {
9
        try {
13
            super.testUnixLineSeparator();
10
            super.testLineSeparatorCharacter();
14
            fail("Should trigger once this bug is fixed. {@since 1.2}");
11
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
15
        } catch (AssertionFailedError e) {
12
        } catch (AssertionFailedError e){
16
        }
13
        }
17
    
14
    
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