Skip to content

Commit

Permalink
Merge pull request #3 from liqi19950722/addTest
Browse files Browse the repository at this point in the history
fix: i18ntest
  • Loading branch information
mercyblitz authored May 14, 2024
2 parents 9a3c482 + 4e8409c commit ac9c161
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,6 +21,11 @@
class I18nEndpointTest {
ApplicationContextRunner applicationContextRunner;

@BeforeAll
static void init() {
Locale.setDefault(Locale.CHINA);
}

@BeforeEach
void setup() {
applicationContextRunner = new ApplicationContextRunner()
Expand Down

0 comments on commit ac9c161

Please sign in to comment.