Fix test failed with non english locale
This commit is contained in:
committed by
Oleg Zhurakousky
parent
9803f4c61e
commit
81237a484d
@@ -21,6 +21,7 @@ import static org.junit.Assert.assertTrue;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -41,6 +42,7 @@ public class RuntimeJavaCompilerTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void missingType() throws Exception {
|
public void missingType() throws Exception {
|
||||||
|
Locale.setDefault(Locale.ENGLISH);
|
||||||
RuntimeJavaCompiler rjc = new RuntimeJavaCompiler();
|
RuntimeJavaCompiler rjc = new RuntimeJavaCompiler();
|
||||||
CompilationResult cr = rjc.compile("A",
|
CompilationResult cr = rjc.compile("A",
|
||||||
"public class A implements java.util.function.Supplier { "+
|
"public class A implements java.util.function.Supplier { "+
|
||||||
|
|||||||
Reference in New Issue
Block a user