// Path: nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java
// @Configuration
// public class EmbeddedDataSourceConfig {
// 
//     @Bean
//     @Primary
//     public DataSource dataSource() throws IOException {
//         return embeddedPostgres().getPostgresDatabase();
//     }
// 
//     @Bean
//     public EmbeddedPostgres embeddedPostgres() throws IOException {
//         return EmbeddedPostgres.start();
//     }
// }


import static org.mockito.Matchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import java.sql.Connection;
import org.flywaydb.core.api.callback.FlywayCallback;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.zalando.nakadiproducer.config.EmbeddedDataSourceConfig;
package org.zalando.nakadiproducer;




@ActiveProfiles("test")
@RunWith(SpringRunner.class)
@SpringBootTest(
        webEnvironment = SpringBootTest.WebEnvironment.MOCK,
        properties = { "zalando.team.id:alpha-local-testing", "nakadi-producer.scheduled-transmission-enabled:false", "spring.flyway.enabled:false"},
// Path: nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/config/EmbeddedDataSourceConfig.java
// @Configuration
// public class EmbeddedDataSourceConfig {
// 
//     @Bean
//     @Primary
//     public DataSource dataSource() throws IOException {
//         return embeddedPostgres().getPostgresDatabase();
//     }
// 
//     @Bean
//     public EmbeddedPostgres embeddedPostgres() throws IOException {
//         return EmbeddedPostgres.start();
//     }
// }


// Path: nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/NonNakadiProducerFlywayCallbackIT.java
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import java.sql.Connection;
import org.flywaydb.core.api.callback.FlywayCallback;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.zalando.nakadiproducer.config.EmbeddedDataSourceConfig;

package org.zalando.nakadiproducer;




@ActiveProfiles("test")
@RunWith(SpringRunner.class)
@SpringBootTest(
        webEnvironment = SpringBootTest.WebEnvironment.MOCK,
        properties = { "zalando.team.id:alpha-local-testing", "nakadi-producer.scheduled-transmission-enabled:false", "spring.flyway.enabled:false"},
        classes = { TestApplication.class, EmbeddedDataSourceConfig.class }