1 | void testReply2() {↵ | | 1 | void testReply() {↵
|
2 | String s = "Re: Subject";↵ | | 2 | String s = "Subject";↵
|
|
3 | String result = MessageBuilderHelper.createReplySubject(s);↵ | | 3 | String result = MessageBuilderHelper.createReplySubject(s);↵
|
|
4 | assertEquals("Re: Subject", result);↵ | | 4 | assertEquals("Re: Subject", result);↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * Check if "Fwd: " is only prepended if not already found in string↵ | | 7 | * Check if "Fwd: " is correctly prepended↵
|
8 | *↵ | | 8 | *↵
|
9 | */↵ | | 9 | */↵
|
10 | public void testForward2() {↵ | | 10 | public void testForward() {↵
|
11 | String s = "Fwd: Subject";↵ | | 11 | String s = "Subject";↵
|
|
12 | String result = MessageBuilderHelper.createForwardSubject(s);↵ | | 12 | String result = MessageBuilderHelper.createForwardSubject(s);↵
|
|
13 | assertEquals("Fwd: Subject", result);↵ | | 13 | assertEquals("Fwd: Subject", result);↵
|
14 | }↵ | | 14 | }↵
|
|
15 | /**↵ | | 15 | /**↵
|
16 | * Check if "Re:" is only prepended if not already found in string↵ | | 16 | * Check if "Re: " is only prepended if not already found in string↵
|
17 | * <p>↵ | | 17 | *↵
|
18 | * Note, the missing space↵ | | |
|
19 | */↵ | | 18 | */↵
|
20 | public void testReply3() {↵ | | 19 | public void testReply2() {↵
|
21 | String s = "Re:Subject";↵ | | 20 | String s = "Re: Subject";↵
|
|
22 | String result = MessageBuilderHelper.createReplySubject(s);↵ | | 21 | String result = MessageBuilderHelper.createReplySubject(s);↵
|
|
23 | assertEquals("Re:Subject", result);↵ | | 22 | assertEquals("Re: Subject", result);↵
|
24 | }↵ | | 23 | }↵
|
|
25 | /**↵ | | 24 | /**↵
|
26 | * Check if "Fwd:" is only prepended if not already found in string↵ | | 25 | * Check if "Fwd: " is only prepended if not already found in string↵
|
27 | * <p>↵ | | |
|
28 | * Note, the missing space↵ | | |
|
29 | *↵ | | 26 | *↵
|
30 | */↵ | | 27 | */↵
|
31 | public void testForward3() {↵ | | 28 | public void testForward2() {↵
|
32 | String s = "Fwd:Subject";↵ | | 29 | String s = "Fwd: Subject";↵
|
|
33 | String result = MessageBuilderHelper.createForwardSubject(s);↵ | | 30 | String result = MessageBuilderHelper.createForwardSubject(s);↵
|
|
34 | assertEquals("Fwd:Subject", result);↵ | | 31 | assertEquals("Fwd: Subject", result);↵
|
35 | | | 32 |
|