|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design; |
|
|
|
package com.fr.design; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.invoke.Reflect; |
|
|
|
import junit.framework.TestCase; |
|
|
|
import junit.framework.TestCase; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Locale; |
|
|
@ -17,4 +18,10 @@ public class DesignerEnvManagerTest extends TestCase{ |
|
|
|
assertEquals("下边界", envManager.getLanguage(), Locale.SIMPLIFIED_CHINESE); |
|
|
|
assertEquals("下边界", envManager.getLanguage(), Locale.SIMPLIFIED_CHINESE); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void testCheckLocale() { |
|
|
|
|
|
|
|
DesignerEnvManager envManager = new DesignerEnvManager(); |
|
|
|
|
|
|
|
Locale checkLocale = Reflect.on(envManager).call("checkLocale", Locale.getDefault()).get(); |
|
|
|
|
|
|
|
assertEquals(Locale.SIMPLIFIED_CHINESE, checkLocale); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|