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){ }
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){ }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcherTest.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
void testParagraphCharacter() throws IOException {
1
void testWindowsLineSeparator2() throws IOException {
2
        try {
2
        try {
3
            super.testParagraphCharacter();
3
            super.testWindowsLineSeparator2();
4
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
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
    /**
9
     * Fails for the same reason as "default" mode in doEndTest2.
10
     */
8
    public void testLineSeparatorCharacter() throws IOException {
11
    public void testUnixLineSeparator() throws IOException {
9
        try {
12
        try {
10
            super.testLineSeparatorCharacter();
13
            super.testUnixLineSeparator();
11
            fail("Should trigger once fixed. {@since JDK 1.4RC1}");
14
            fail("Should trigger once this bug is fixed. {@since 1.2}");
12
        } catch (AssertionFailedError e){
15
        } catch (AssertionFailedError e){
13
        }
16
        }
14
    
17
    
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