Skip to content

Instantly share code, notes, and snippets.

Last active March 27, 2019 09:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
@ContextConfiguration(classes = { StormTrackerApplication.class }, initializers = ITStormRepo.Initializer.class)
public class ITStormRepo {
public static class Initializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
public void initialize(ConfigurableApplicationContext applicationContext) {
TestPropertyValues.of("spring.datasource.url=jdbc:tc:postgresql:11.2://arbitrary/arbitrary", //
"spring.datasource.username=test", //
"spring.datasource.password=test", //
private StormRepo repo;
public void testReadFromStormsTable() {
public void testWriteToStormsTable() {
Storm savedStorm = Storm("03-17-2019", "03-20-2019", "South Atlantic", "Knoxville, Tennesee",
"Tropical Depression", 3));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment