aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/at')
-rw-r--r--src/test/java/at/gv/egiz/moazs/ConfigUtilTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/ConfigUtilTest.java b/src/test/java/at/gv/egiz/moazs/ConfigUtilTest.java
index d7ac0a1..b4398fb 100644
--- a/src/test/java/at/gv/egiz/moazs/ConfigUtilTest.java
+++ b/src/test/java/at/gv/egiz/moazs/ConfigUtilTest.java
@@ -62,6 +62,22 @@ public class ConfigUtilTest {
}
+ @Test
+ public void convertBooleanToTrue() {
+ var prefix = ConfigUtil.TNVZ_REQUEST_KEY;
+ var map = Map.of(prefix, "true");
+ ConfigType config = configUtil.convert(map);
+ assertThat(config.isPerformQueryPersonRequest()).isTrue();
+ }
+
+ @Test
+ public void convertBooleanToFalse() {
+ var prefix = ConfigUtil.TNVZ_REQUEST_KEY;
+ var map = Map.of(prefix, "false");
+ ConfigType config = configUtil.convert(map);
+ assertThat(config.isPerformQueryPersonRequest()).isFalse();
+ }
+
private ConfigType createConfig(Map<String, String> headerMap) {
var headers = configUtil.convertMapToHeaders(headerMap);