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 ===================================================================================================
|
//~ Constructors ===================================================================================================
|
||||||
|
|
||||||
public SpringSecurityMessageSourceTests() {
|
public SpringSecurityMessageSourceTests() {
|
||||||
super();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public SpringSecurityMessageSourceTests(String arg0) {
|
public SpringSecurityMessageSourceTests(String arg0) {
|
||||||
|
@ -39,13 +38,9 @@ public class SpringSecurityMessageSourceTests extends TestCase {
|
||||||
|
|
||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
junit.textui.TestRunner.run(SpringSecurityMessageSourceTests.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testOperation() {
|
public void testOperation() {
|
||||||
SpringSecurityMessageSource msgs = new SpringSecurityMessageSource();
|
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() {
|
public void testReplacableLookup() {
|
||||||
|
|
Loading…
Reference in New Issue