void testForward2() { String s = "Fwd: Subject"; String result = MessageBuilderHelper.createForwardSubject(s); assertEquals("Fwd: Subject", result); } /** * Check if "Re:" is only prepended if not already found in string * <p> * Note, the missing space */ public void testReply3() { String s = "Re:Subject"; String result = MessageBuilderHelper.createReplySubject(s); assertEquals("Re:Subject", result); } /** * Check if "Fwd:" is only prepended if not already found in string * <p> * Note, the missing space * */ public void testForward3() { String s = "Fwd:Subject"; String result = MessageBuilderHelper.createForwardSubject(s); assertEquals("Fwd:Subject", result);
void testReply() { String s = "Subject"; String result = MessageBuilderHelper.createReplySubject(s); assertEquals("Re: Subject", result); } /** * Check if "Fwd: " is correctly prepended * */ public void testForward() { String s = "Subject"; String result = MessageBuilderHelper.createForwardSubject(s); assertEquals("Fwd: Subject", result); } /** * Check if "Re: " is only prepended if not already found in string * */ public void testReply2() { String s = "Re: Subject"; String result = MessageBuilderHelper.createReplySubject(s); assertEquals("Re: Subject", result);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/composer/SubjectTest.java File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/composer/SubjectTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testForward2() {
1
void testReply() {
2
        String s = "Fwd: Subject";
2
        String s = "Subject";
3
        String result = MessageBuilderHelper.createForwardSubject(s);
3
        String result = MessageBuilderHelper.createReplySubject(s);
4
        assertEquals("Fwd: Subject", result);
4
        assertEquals("Re: Subject", result);
5
    }
5
    }
6
    /**
6
    /**
7
 * Check if "Re:" is only prepended if not already found in string
7
 * Check if "
8
 * <p>
9
 * Note, the missing space
8
Fwd: " is correctly prepended
9
 *
10
 */
10
 */
11
    public void testReply3() {
11
    public void testForward() {
12
        String s = "Re:Subject";
12
        String s = "Subject";
13
        String result = MessageBuilderHelper.createReplySubject(s);
13
        String result = MessageBuilderHelper.createForwardSubject(s);
14
        assertEquals("Re:Subject", result);
14
        assertEquals("Fwd: Subject", result);
15
    }
15
    }
16
    /**
16
    /**
17
 * Check if "Fwd:" is only prepended if not already found in string
17
 * Check if "Re: " is only prepended if not already found in string
18
 * <p>
19
 * Note, the missing space
20
 *
18
 *
21
 */
19
 */
22
    public void testForward3() {
20
    public void testReply2() {
23
        String s = "Fwd:Subject";
21
        String s = "Re: Subject";
24
        String result = MessageBuilderHelper.createForwardSubject(s);
22
        String result = MessageBuilderHelper.createReplySubject(s);
25
        assertEquals("Fwd:Subject", result);
23
        assertEquals("Re: Subject", result);
26
    
24
    
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