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:
Luke Taylor 2007-10-11 16:18:28 +00:00
parent 0a214e4930
commit 75bc838ae8
1 changed files with 1 additions and 6 deletions

View File

@ -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() {