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 | }
|