package cane.brothers.spring;

import javax.inject.Inject;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.web.client.RestTemplate;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = BootApplication.class)
@WebAppConfiguration
public class BootApplicationTests {

	@Inject
	RestTemplate tmpl;
	
	@Test
	public void contextLoads() {
	}

}

@@ -35,27 +35,33 @@
 ort 
-javax.inject.Inject
+static org.junit.Assert.*
 ;%0A%0Ai
@@ -176,32 +176,89 @@
 nConfiguration;%0A
+import org.springframework.boot.test.WebIntegrationTest;%0A
 import org.sprin
@@ -317,73 +317,8 @@
 er;%0A
-import org.springframework.test.context.web.WebAppConfiguration;%0A
 impo
@@ -479,24 +479,23 @@
 @Web
-AppConfigu
+Integ
 ration
+Test
 %0Apub
@@ -530,38 +530,8 @@
 ts %7B
-%0A%0A%09@Inject%0A%09RestTemplate tmpl;
 %0A%09%0A%09
@@ -568,12 +568,240 @@
 s() %7B%0A%09%7D
+%0A%09%0A// TODO%09rest template%0A//%09@Test%0A//%09public void getItems() %7B%0A//%09%09RestTemplate rest = new RestTemplate();%0A//%09%09String resp = rest.getForObject(%22http://localhost:8090/items%22, String.class);%0A//%09%09%0A//%09%09assertEquals(%22asd%22, resp);%0A//%09%7D
 %0A%0A%7D%0A

add TODO