From aad003821428968934145d234cd8bc88a4b8f36e Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Wed, 27 Apr 2022 00:25:05 +0200 Subject: [PATCH 1/2] add property test --- pom.xml | 11 ++++++++++- .../login/CamundaLoginPropertiesTest.kt | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/test/kotlin/io/holunda/camunda/platform/login/CamundaLoginPropertiesTest.kt diff --git a/pom.xml b/pom.xml index 7e8ab08..9b91114 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,6 @@ import pom - org.jetbrains.kotlin kotlin-bom @@ -59,6 +58,16 @@ kotlin-logging-jvm 2.1.21 + + org.junit.jupiter + junit-jupiter + test + + + org.assertj + assertj-core + test + diff --git a/src/test/kotlin/io/holunda/camunda/platform/login/CamundaLoginPropertiesTest.kt b/src/test/kotlin/io/holunda/camunda/platform/login/CamundaLoginPropertiesTest.kt new file mode 100644 index 0000000..245c223 --- /dev/null +++ b/src/test/kotlin/io/holunda/camunda/platform/login/CamundaLoginPropertiesTest.kt @@ -0,0 +1,18 @@ +package io.holunda.camunda.platform.login + + +import org.assertj.core.api.Assertions.assertThat +import org.junit.jupiter.api.Test + +class CamundaLoginPropertiesTest { + + @Test + fun `should have correct defaults`() { + val properties = CamundaLoginProperties() + assertThat(properties.userId).isEqualTo("nobody") + assertThat(properties.enabled).isEqualTo(false) + assertThat(properties.camundaContextPath).isEqualTo("/camunda") + assertThat(properties.createIfAbsent).isEqualTo(false) + assertThat(properties.randomPassword).isEqualTo(true) + } +} From 1cf27101d598eb7d92e2014eb145afd6cdbdbca1 Mon Sep 17 00:00:00 2001 From: Simon Zambrovski Date: Wed, 27 Apr 2022 00:30:57 +0200 Subject: [PATCH 2/2] Update for next development version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9b91114..2ed4215 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.holunda camunda-platform-7-autologin - 0.0.1-SNAPSHOT + 0.0.1 jar ${project.artifactId} https://github.com/holunda-io/camunda-platform-7-autologin/