Switched testOperation method to use French locale to prevent use of default machine locales such as Chinese (see previous commit sg).
This commit is contained in:
parent
0a214e4930
commit
75bc838ae8
|
@ -30,7 +30,6 @@ public class SpringSecurityMessageSourceTests extends TestCase {
|
|||
//~ Constructors ===================================================================================================
|
||||
|
||||
public SpringSecurityMessageSourceTests() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SpringSecurityMessageSourceTests(String arg0) {
|
||||
|
@ -39,13 +38,9 @@ public class SpringSecurityMessageSourceTests extends TestCase {
|
|||
|
||||
//~ Methods ========================================================================================================
|
||||
|
||||
public static void main(String[] args) {
|
||||
junit.textui.TestRunner.run(SpringSecurityMessageSourceTests.class);
|
||||
}
|
||||
|
||||
public void testOperation() {
|
||||
SpringSecurityMessageSource msgs = new SpringSecurityMessageSource();
|
||||
assertEquals("Proxy tickets are rejected", msgs.getMessage("RejectProxyTickets.reject", null, Locale.ENGLISH));
|
||||
assertEquals("Des tickets proxy ont ŽtŽ rejetŽs", msgs.getMessage("RejectProxyTickets.reject", null, Locale.FRENCH));
|
||||
}
|
||||
|
||||
public void testReplacableLookup() {
|
||||
|
|
Loading…
Reference in New Issue