diff --git a/microsphere-i18n-spring-boot/src/test/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpointTest.java b/microsphere-i18n-spring-boot/src/test/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpointTest.java index 6128c44..7d8c7ba 100644 --- a/microsphere-i18n-spring-boot/src/test/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpointTest.java +++ b/microsphere-i18n-spring-boot/src/test/java/io/microsphere/i18n/spring/boot/actuate/I18nEndpointTest.java @@ -3,12 +3,14 @@ import com.jayway.jsonpath.Configuration; import com.jayway.jsonpath.DocumentContext; import io.microsphere.i18n.spring.annotation.EnableI18n; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.context.annotation.Bean; +import java.util.Locale; import java.util.Map; import static com.jayway.jsonpath.JsonPath.using; @@ -19,6 +21,11 @@ class I18nEndpointTest { ApplicationContextRunner applicationContextRunner; + @BeforeAll + static void init() { + Locale.setDefault(Locale.CHINA); + } + @BeforeEach void setup() { applicationContextRunner = new ApplicationContextRunner()