From e62d2b1d541d259020e0e28c26eabaeb91ae73ef Mon Sep 17 00:00:00 2001 From: bgehrels Date: Thu, 12 Jul 2018 16:55:45 +0200 Subject: [PATCH] better naming of a test, removed a dead import --- .../nakadiproducer/NakadiProducerAutoConfiguration.java | 1 - .../java/org/zalando/nakadiproducer/tests/ApplicationIT.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java index cd001930..0ad70345 100644 --- a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java +++ b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java @@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; diff --git a/nakadi-producer-starter-spring-boot-2-test/src/test/java/org/zalando/nakadiproducer/tests/ApplicationIT.java b/nakadi-producer-starter-spring-boot-2-test/src/test/java/org/zalando/nakadiproducer/tests/ApplicationIT.java index 0336b65a..15fdd69b 100644 --- a/nakadi-producer-starter-spring-boot-2-test/src/test/java/org/zalando/nakadiproducer/tests/ApplicationIT.java +++ b/nakadi-producer-starter-spring-boot-2-test/src/test/java/org/zalando/nakadiproducer/tests/ApplicationIT.java @@ -12,6 +12,7 @@ import java.io.File; import static io.restassured.RestAssured.given; +import static org.junit.Assert.assertTrue; @RunWith(SpringRunner.class) @SpringBootTest( @@ -32,7 +33,7 @@ public static void fakeCredentialsDir() { } @Test - public void foo() { + public void shouldSuccessfullyStartAndSnapshotCanBeTriggered() { given().baseUri("http://localhost:" + localManagementPort).contentType("application/json") .when().post("/actuator/snapshot-event-creation/eventtype") .then().statusCode(204);