-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let's use an integration test to experiment with topic setup
- Loading branch information
Showing
6 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/itest/java/se/yolean/kafka/topic/client/service/IntegrationTestConfigLocalhost.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package se.yolean.kafka.topic.client.service; | ||
|
||
import java.util.Properties; | ||
|
||
import com.google.inject.AbstractModule; | ||
import com.google.inject.name.Names; | ||
|
||
public class IntegrationTestConfigLocalhost extends AbstractModule { | ||
|
||
@Override | ||
protected void configure() { | ||
bind(String.class).annotatedWith(Names.named("config:bootstrap")).toInstance("localhost:9092"); | ||
|
||
bind(String.class).annotatedWith(Names.named("config:adminTopic")).toInstance("_topic_declarations"); | ||
|
||
bind(Integer.class).annotatedWith(Names.named("config:adminInitTimeoutMs")).toInstance(1000); | ||
|
||
bind(Integer.class).annotatedWith(Names.named("config:adminTopicDesiredReplicationFactor")).toInstance(1); | ||
|
||
bind(Properties.class).annotatedWith(Names.named("admin")).toProvider(AdminClientPropsProvider.class); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.slf4j.simpleLogger.defaultLogLevel=info | ||
org.slf4j.simpleLogger.log.se.yolean=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.slf4j.simpleLogger.defaultLogLevel=info | ||
org.slf4j.simpleLogger.log.se.yolean=debug |