Skip to content

Instantly share code, notes, and snippets.

Last active Nov 17, 2017
What would you like to do?
@SpringBootTest(classes = AlertManagerApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class AlertManagerApplicationIT {
private int port;
private TestRestTemplate template;
private URL base;
public void setUp() throws Exception {
this.base = new URL("http://localhost:" + port + "/");
// then add your integration test which will include real started ignite server node whoch will be closed once the integration test is done
public void contextLoads() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment