Fix test failed with non english locale

This commit is contained in:
Yanming Zhou
2018-08-16 19:36:01 +08:00
committed by Oleg Zhurakousky
parent 9803f4c61e
commit 81237a484d

View File

@@ -21,6 +21,7 @@ import static org.junit.Assert.assertTrue;
import java.io.File;
import java.util.List;
import java.util.Locale;
import java.util.function.Supplier;
import org.junit.Test;
@@ -41,6 +42,7 @@ public class RuntimeJavaCompilerTests {
@Test
public void missingType() throws Exception {
Locale.setDefault(Locale.ENGLISH);
RuntimeJavaCompiler rjc = new RuntimeJavaCompiler();
CompilationResult cr = rjc.compile("A",
"public class A implements java.util.function.Supplier { "+