Skip to content

Commit 55dfdc5

Browse files
update project name + links + added test properties file
1 parent 425d67d commit 55dfdc5

File tree

11 files changed

+15
-18
lines changed

11 files changed

+15
-18
lines changed

spring-kafka-integration-helloworld/README.md

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# spring-kafka-spring-integration-helloworld
2+
3+
[![Quality Gate](https://sonarqube.com/api/badges/gate?key=com.codenotfound:spring-kafka-spring-integration-helloworld)](https://sonarqube.com/dashboard/index/com.codenotfound:spring-kafka-spring-integration-helloworld)
4+
5+
A detailed step-by-step tutorial on how to connect Apache Kafka to a Spring Integration Channel using Spring Kafka and Spring Boot.
6+
7+
[https://www.codenotfound.com/spring-kafka-spring-integration-example.html](https://www.codenotfound.com/spring-kafka-spring-integration-example.html)

spring-kafka-integration-helloworld/pom.xml renamed to spring-kafka-spring-integration-helloworld/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.codenotfound</groupId>
7-
<artifactId>spring-kafka-integration-helloworld</artifactId>
7+
<artifactId>spring-kafka-spring-integration-helloworld</artifactId>
88
<version>0.0.1-SNAPSHOT</version>
99

10-
<name>spring-kafka-integration-helloworld</name>
11-
<description>Spring Kafka - Integration Example</description>
12-
<url>https://www.codenotfound.com/2017/05/spring-kafka-integration-example.html</url>
10+
<name>spring-kafka-spring-integration-helloworld</name>
11+
<description>Spring Kafka - Spring Integration Example</description>
12+
<url>https://www.codenotfound.com/spring-kafka-spring-integration-example.html</url>
1313

1414
<parent>
1515
<groupId>org.springframework.boot</groupId>

spring-kafka-integration-helloworld/src/main/resources/logback.xml renamed to spring-kafka-spring-integration-helloworld/src/main/resources/logback.xml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<logger name="com.codenotfound" level="INFO" />
1111
<logger name="org.springframework" level="WARN" />
1212

13-
1413
<root level="WARN">
1514
<appender-ref ref="STDOUT" />
1615
</root>
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.util.Map;
77
import java.util.concurrent.TimeUnit;
88

9-
import org.junit.BeforeClass;
109
import org.junit.ClassRule;
1110
import org.junit.Test;
1211
import org.junit.runner.RunWith;
@@ -42,11 +41,6 @@ public class SpringKafkaIntegrationApplicationTest {
4241
public static KafkaEmbedded embeddedKafka =
4342
new KafkaEmbedded(1, true, SPRING_INTEGRATION_KAFKA_TOPIC);
4443

45-
@BeforeClass
46-
public static void setUpBeforeClass() {
47-
System.setProperty("kafka.bootstrap-servers", embeddedKafka.getBrokersAsString());
48-
}
49-
5044
@Test
5145
public void testIntegration() throws Exception {
5246
MessageChannel producingChannel =
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
kafka:
2+
bootstrap-servers: ${spring.embedded.kafka.brokers}
3+
topic:
4+
spring-integration-kafka: spring-integration-kafka.t

0 commit comments

Comments
 (0)