Skip to content
Snippets Groups Projects
Commit 9cd4758e authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4814 replaced var

parent acc143f7
Branches
Tags
No related merge requests found
...@@ -10,9 +10,9 @@ import org.springframework.boot.test.web.client.TestRestTemplate; ...@@ -10,9 +10,9 @@ import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.test.web.server.LocalServerPort; import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.cloud.config.environment.Environment; import org.springframework.cloud.config.environment.Environment;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import de.ozgcloud.common.test.ITCase; import de.ozgcloud.common.test.ITCase;
import lombok.var;
@SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT) @SpringBootTest(webEnvironment = WebEnvironment.DEFINED_PORT)
@ITCase @ITCase
...@@ -22,7 +22,7 @@ class MongoConfigServerITCase { ...@@ -22,7 +22,7 @@ class MongoConfigServerITCase {
@Test @Test
void shouldHaveHttpEndpoint() throws Exception { void shouldHaveHttpEndpoint() throws Exception {
var response = new TestRestTemplate().getForEntity("http://localhost:" ResponseEntity<Environment> response = new TestRestTemplate().getForEntity("http://localhost:"
+ port + "/" + MongoPropertySourceTestFactory.APPNAME + "/" + MongoPropertySourceTestFactory.PROFILE, Environment.class); + port + "/" + MongoPropertySourceTestFactory.APPNAME + "/" + MongoPropertySourceTestFactory.PROFILE, Environment.class);
assertEquals(HttpStatus.OK, response.getStatusCode()); assertEquals(HttpStatus.OK, response.getStatusCode());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment