// Path: nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/TestApplication.java
// @SpringBootApplication
// @EnableNakadiProducer
// public class TestApplication {
// 
//     public static void main(final String[] args) {
//         SpringApplication.run(TestApplication.class, args);
//     }
// }
// 
// 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 com.jayway.restassured.RestAssured.given;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.web.server.LocalManagementPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.zalando.nakadiproducer.TestApplication;
import org.zalando.nakadiproducer.config.EmbeddedDataSourceConfig;
package org.zalando.nakadiproducer.snapshots;



@ActiveProfiles("test")
@RunWith(SpringRunner.class)
@SpringBootTest(
    webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
    properties = {
            "management.security.enabled=false",
            "zalando.team.id:alpha-local-testing",
            "nakadi-producer.scheduled-transmission-enabled:false",
            "management.endpoints.web.exposure.include:snapshot-event-creation"
    },
// Path: nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/TestApplication.java
// @SpringBootApplication
// @EnableNakadiProducer
// public class TestApplication {
// 
//     public static void main(final String[] args) {
//         SpringApplication.run(TestApplication.class, args);
//     }
// }
// 
// 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/snapshots/SnapshotEventGenerationWebEndpointIT.java
import static com.jayway.restassured.RestAssured.given;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.web.server.LocalManagementPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import org.zalando.nakadiproducer.TestApplication;
import org.zalando.nakadiproducer.config.EmbeddedDataSourceConfig;

package org.zalando.nakadiproducer.snapshots;



@ActiveProfiles("test")
@RunWith(SpringRunner.class)
@SpringBootTest(
    webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
    properties = {
            "management.security.enabled=false",
            "zalando.team.id:alpha-local-testing",
            "nakadi-producer.scheduled-transmission-enabled:false",
            "management.endpoints.web.exposure.include:snapshot-event-creation"
    },
    classes = { TestApplication.class, EmbeddedDataSourceConfig.class, SnapshotEventGenerationWebEndpointIT.Config.class }