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