From 81237a484dc27c2a7e2ce6cada38cb05cfea8599 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Thu, 16 Aug 2018 19:36:01 +0800 Subject: [PATCH] Fix test failed with non english locale --- .../cloud/function/compiler/java/RuntimeJavaCompilerTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-cloud-function-compiler/src/test/java/org/springframework/cloud/function/compiler/java/RuntimeJavaCompilerTests.java b/spring-cloud-function-compiler/src/test/java/org/springframework/cloud/function/compiler/java/RuntimeJavaCompilerTests.java index 5809d406b..c89940c30 100644 --- a/spring-cloud-function-compiler/src/test/java/org/springframework/cloud/function/compiler/java/RuntimeJavaCompilerTests.java +++ b/spring-cloud-function-compiler/src/test/java/org/springframework/cloud/function/compiler/java/RuntimeJavaCompilerTests.java @@ -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 { "+