Polish
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user