Skip to content

Commit

Permalink
Merge branch 'main' into feature/3342
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Feb 24, 2023
2 parents 35e8488 + ce80ed4 commit 0489675
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.Locale;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient;
Expand All @@ -25,6 +28,18 @@ class I18nExceptionTest {
@Autowired
WebTestClient webClient;

Locale currentLocale;

@BeforeEach
void setUp() {
currentLocale = Locale.getDefault();
Locale.setDefault(Locale.ENGLISH);
}

@AfterEach
void tearDown() {
Locale.setDefault(currentLocale);
}

@Test
void shouldBeOkForGreetingEndpoint() {
Expand Down

0 comments on commit 0489675

Please sign in to comment.