Polish
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package sample.flyway;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -25,16 +23,19 @@ import org.springframework.boot.test.SpringApplicationConfiguration;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@SpringApplicationConfiguration(classes=SampleFlywayApplication.class)
|
||||
@SpringApplicationConfiguration(classes = SampleFlywayApplication.class)
|
||||
public class SampleFlywayApplicationTests {
|
||||
|
||||
|
||||
@Autowired
|
||||
private JdbcTemplate template;
|
||||
|
||||
|
||||
@Test
|
||||
public void testDefaultSettings() throws Exception {
|
||||
assertEquals(new Integer(1), template.queryForObject("SELECT COUNT(*) from PERSON", Integer.class));
|
||||
assertEquals(new Integer(1), this.template.queryForObject(
|
||||
"SELECT COUNT(*) from PERSON", Integer.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user