This commit is contained in:
Phillip Webb
2014-04-30 21:53:24 +01:00
parent fb13bf9016
commit 6025f45aa0
6 changed files with 20 additions and 17 deletions

View File

@@ -16,9 +16,6 @@
package sample.simple;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -26,6 +23,9 @@ import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link SampleSimpleApplication}.
*
@@ -40,9 +40,9 @@ public class SpringTestSampleSimpleApplicationTests {
@Test
public void testContextLoads() throws Exception {
assertNotNull(ctx);
assertTrue(ctx.containsBean("helloWorldService"));
assertTrue(ctx.containsBean("sampleSimpleApplication"));
assertNotNull(this.ctx);
assertTrue(this.ctx.containsBean("helloWorldService"));
assertTrue(this.ctx.containsBean("sampleSimpleApplication"));
}
}