Browse Source

补充单元测试

feature/big-screen
Yvan 4 years ago
parent
commit
ba7a9e3aa8
  1. 7
      designer-base/src/test/java/com/fr/design/DesignerEnvManagerTest.java

7
designer-base/src/test/java/com/fr/design/DesignerEnvManagerTest.java

@ -1,5 +1,6 @@
package com.fr.design;
import com.fr.invoke.Reflect;
import junit.framework.TestCase;
import java.util.Locale;
@ -17,4 +18,10 @@ public class DesignerEnvManagerTest extends TestCase{
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);
}
}

Loading…
Cancel
Save