Skip to content
Snippets Groups Projects
Commit 6bc103f7 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'Rename FrontendEnvironment into Environment' (#431) from...

Merge pull request 'Rename FrontendEnvironment into Environment' (#431) from frontend-environment-umbenennung into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/431


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents e4e02f35 3496e760
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ import lombok.Getter;
@Getter
@Builder
public class FrontendEnvironment {
public class Environment {
private boolean production;
private String remoteHost;
......
......@@ -48,8 +48,8 @@ public class EnvironmentController {
private VorgangProcessorProperties vorgangProcessorProperties;
@GetMapping
public FrontendEnvironment getFrontendEnvironment() {
return FrontendEnvironment.builder()
public Environment getEnvironment() {
return Environment.builder()
.production(productionProperties.isProduction())
.remoteHost(linkTo(RootController.class).toUri().toString())
.authServer(oAuth2Properties.getAuthServerUrl())
......
......@@ -62,9 +62,9 @@ class EnvironmentControllerTest {
mockMvc = MockMvcBuilders.standaloneSetup(controller).build();
}
@DisplayName("Get frontend environment")
@DisplayName("Get environment")
@Nested
class TestGetFrontendEnvironment {
class TestGetEnvironment {
private static final String CLIENT = LoremIpsum.getInstance().getFirstName() + "Client";
private static final boolean PRODUCTION = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment