-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Loïc Greffier
committed
Sep 19, 2023
1 parent
d2cee0f
commit 4d80b06
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...eamplify-core/src/test/java/com/michelin/kstreamplify/properties/PropertiesUtilsTest.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,28 @@ | ||
package com.michelin.kstreamplify.properties; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
import java.util.Properties; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class PropertiesUtilsTest { | ||
|
||
@Test | ||
void shouldLoadProperties() { | ||
Properties properties = PropertiesUtils.loadProperties(); | ||
|
||
assertTrue(properties.containsKey("server.port")); | ||
assertTrue(properties.containsValue(8080)); | ||
|
||
assertTrue(properties.containsKey("kafka.properties.application.id")); | ||
assertTrue(properties.containsValue("appId")); | ||
} | ||
|
||
@Test | ||
void shouldLoadKafkaProperties() { | ||
Properties properties = PropertiesUtils.loadKafkaProperties(PropertiesUtils.loadProperties()); | ||
|
||
assertTrue(properties.containsKey("application.id")); | ||
assertTrue(properties.containsValue("appId")); | ||
} | ||
} |
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,5 @@ | ||
server: | ||
port: 8080 | ||
kafka: | ||
properties: | ||
application.id: appId |