Skip to content
Snippets Groups Projects
Commit ced54873 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4717 Verify isProduction is called

parent eb3f795a
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,16 @@ class FrontendEnvironmentControllerTest {
@Nested
class TestBody {
@Test
@SneakyThrows
void shouldCallIsProduction() {
when(environmentProperties.isProduction()).thenReturn(true);
doRequest();
verify(environmentProperties).isProduction();
}
@ParameterizedTest
@ValueSource(booleans = { true, false })
@SneakyThrows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment