void testLineWithLinefeedArray() throws IOException { writeByteArray(); writeAsArray('\n'); stream.assertInvoked(); } public void testLineWithLinefeedSingleBytes() throws IOException { writeSingleBytes(); stream.write('\n'); stream.assertInvoked();
void testLineWithCariagereturnArray() throws IOException { writeByteArray(); writeAsArray('\r'); stream.assertInvoked(); } public void testLineWithCariagereturnSingleBytes() throws IOException { writeSingleBytes(); stream.write('\r'); stream.assertInvoked();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/LineOrientedOutputStreamTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testLineWithLinefeedArray() throws IOException {
1
void testLineWithCariagereturnArray() throws IOException {
2
        writeByteArray();
2
        writeByteArray();
3
        writeAsArray('\n');
3
        writeAsArray('\r');
4
        stream.assertInvoked();
4
        stream.assertInvoked();
5
    }
5
    }
6
    public void testLineWithLinefeedSingleBytes() throws IOException {
6
    public void testLineWithCariagereturnSingleBytes() throws IOException {
7
        writeSingleBytes();
7
        writeSingleBytes();
8
        stream.write('\n');
8
        stream.write('\r');
9
        stream.assertInvoked();
9
        stream.assertInvoked();
10
    
10
    
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