Mesos marathon module (#1107)

* mesos marathon demo

* Updated DockerFile to point to maven target

* Pointed to baeldung docker repository

* Added file permissions for Dockerise script
This commit is contained in:
Andrew Morgan
2017-02-15 01:20:28 +00:00
committed by adamd1985
parent dd40ed7025
commit f3f021f036
9 changed files with 136 additions and 0 deletions
@@ -0,0 +1,34 @@
package com.mogronalol;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.client.RestTemplate;
import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = {DemoApplication.class}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class DemoApplicationTests {
private RestTemplate restTemplate;
@LocalServerPort
private int port;
@Before
public void setUp() {
restTemplate = new RestTemplate();
}
@Test
public void contextLoads() {
final String result = restTemplate.getForObject("http://localhost:" + port + "/", String.class);
assertThat(result).isEqualTo("Hello world");
}
}