package io.traintracker.app;

import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class TrainTrackerApplicationTests {

	@Autowired
	private ApplicationContext context;

	@Test
	public void contextLoads() {
		Assertions.assertThat(this.context.getBean(TrainTrackerApplication.class)).isNotNull();
	}

}

@@ -27,48 +27,8 @@
 p;%0A%0A
-import org.assertj.core.api.Assertions;%0A
 impo
@@ -83,71 +83,8 @@
 th;%0A
-import org.springframework.beans.factory.annotation.Autowired;%0A
 impo
@@ -144,63 +144,8 @@
 st;%0A
-import org.springframework.context.ApplicationContext;%0A
 impo
@@ -206,24 +206,8 @@
 r;%0A%0A
-@SpringBootTest%0A
 @Run
@@ -231,16 +231,32 @@
 .class)%0A
+@SpringBootTest%0A
 public c
@@ -298,182 +298,42 @@
 %0A%0A%09@
-Autowired%0A%09private ApplicationContext context;%0A%0A%09@Test%0A%09public void contextLoads() %7B%0A%09%09Assertions.assertThat(this.context.getBean(TrainTrackerApplication.class)).isNotNull();
+Test%0A%09public void contextLoads() %7B
 %0A%09%7D%0A

Simplify app integration test