diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Condition.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/Condition.kt deleted file mode 100644 index 89adbf2..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Condition.kt +++ /dev/null @@ -1,4 +0,0 @@ -package io.zeebe.bpmnspec.api - -interface Condition { -} \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Instruction.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/Instruction.kt deleted file mode 100644 index c98f0af..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Instruction.kt +++ /dev/null @@ -1,3 +0,0 @@ -package io.zeebe.bpmnspec.api - -sealed interface Instruction \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestOutput.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestOutput.kt deleted file mode 100644 index 10ed168..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestOutput.kt +++ /dev/null @@ -1,15 +0,0 @@ -package io.zeebe.bpmnspec.api - -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.dto.ElementInstance -import io.zeebe.bpmnspec.api.dto.Incident -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.api.dto.ProcessInstanceVariable - -data class TestOutput( - val processInstanceKey: ProcessInstanceKey, - val state: ProcessInstanceState, - val elementInstances: List, - val variables: List, - val incidents: List -) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestResult.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestResult.kt deleted file mode 100644 index aa06654..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestResult.kt +++ /dev/null @@ -1,10 +0,0 @@ -package io.zeebe.bpmnspec.api - -data class TestResult( - val testCase: TestCase, - val success: Boolean, - val message: String, - val successfulVerifications: List, - val failedVerification: Verification? = null, - val output: List -) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpecResult.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpecResult.kt deleted file mode 100644 index 557dd3d..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpecResult.kt +++ /dev/null @@ -1,6 +0,0 @@ -package io.zeebe.bpmnspec.api - -data class TestSpecResult( - val spec: TestSpec, - val testResults: List -) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/VerificationResult.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/api/VerificationResult.kt deleted file mode 100644 index 334f64f..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/VerificationResult.kt +++ /dev/null @@ -1,6 +0,0 @@ -package io.zeebe.bpmnspec.api - -data class VerificationResult( - val isFulfilled: Boolean, - val failureMessage: String = "" -) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/package.kt b/core/src/main/kotlin/io/zeebe/bpmnspec/package.kt deleted file mode 100644 index a1cac08..0000000 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/package.kt +++ /dev/null @@ -1,3 +0,0 @@ -package io.zeebe.bpmnspec - -typealias ProcessInstanceKey = Long diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/ClasspathResourceResolver.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/ClasspathResourceResolver.kt similarity index 89% rename from core/src/main/kotlin/io/zeebe/bpmnspec/ClasspathResourceResolver.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/ClasspathResourceResolver.kt index 6b6c6d1..dad1bcb 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/ClasspathResourceResolver.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/ClasspathResourceResolver.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec import java.io.File import java.io.FilenameFilter @@ -8,7 +8,7 @@ import kotlin.io.path.isDirectory class ClasspathResourceResolver( private val classLoader: ClassLoader, private val rootDirectory: String = "" -) : ResourceResolver { +) : org.camunda.community.zeebe.spec.ResourceResolver { override fun getResources(): List { return classLoader.getResource(rootDirectory) diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/DirectoryResourceResolver.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/DirectoryResourceResolver.kt similarity index 94% rename from core/src/main/kotlin/io/zeebe/bpmnspec/DirectoryResourceResolver.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/DirectoryResourceResolver.kt index 7eecc85..29dc789 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/DirectoryResourceResolver.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/DirectoryResourceResolver.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec import java.io.File import java.io.FilenameFilter diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/ResourceResolver.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/ResourceResolver.kt similarity index 68% rename from core/src/main/kotlin/io/zeebe/bpmnspec/ResourceResolver.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/ResourceResolver.kt index 91c5db0..d6fdd14 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/ResourceResolver.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/ResourceResolver.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec import java.io.File diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/SpecRunner.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/SpecRunner.kt similarity index 94% rename from core/src/main/kotlin/io/zeebe/bpmnspec/SpecRunner.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/SpecRunner.kt index e2d8a5f..4487a96 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/SpecRunner.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/SpecRunner.kt @@ -1,11 +1,11 @@ -package io.zeebe.bpmnspec - -import io.zeebe.bpmnspec.api.* -import io.zeebe.bpmnspec.format.SpecDeserializer -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider -import io.zeebe.bpmnspec.runner.TestRunnerEnvironment -import io.zeebe.bpmnspec.runner.eze.EzeEnvironment +package org.camunda.community.zeebe.spec + +import org.camunda.community.zeebe.spec.api.* +import org.camunda.community.zeebe.spec.format.SpecDeserializer +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.runner.TestRunnerEnvironment +import org.camunda.community.zeebe.spec.runner.eze.EzeEnvironment import org.slf4j.LoggerFactory import java.io.FileInputStream import java.io.InputStream diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/AwaitElementInstanceStateAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/AwaitElementInstanceStateAction.kt similarity index 78% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/AwaitElementInstanceStateAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/AwaitElementInstanceStateAction.kt index 3a083c6..8e0c96d 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/AwaitElementInstanceStateAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/AwaitElementInstanceStateAction.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.api.dto.ElementInstanceState -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.api.dto.ElementInstanceState +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider import java.time.Duration import java.time.Instant diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CancelInstanceAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CancelInstanceAction.kt similarity index 55% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/CancelInstanceAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CancelInstanceAction.kt index 9eeb3b9..421a191 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CancelInstanceAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CancelInstanceAction.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class CancelInstanceAction( val processInstance: String? diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CompleteTaskAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CompleteTaskAction.kt similarity index 51% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/CompleteTaskAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CompleteTaskAction.kt index 0b1dc01..87931a5 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CompleteTaskAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CompleteTaskAction.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class CompleteTaskAction( val jobType: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CreateInstanceAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CreateInstanceAction.kt similarity index 63% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/CreateInstanceAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CreateInstanceAction.kt index 79763b4..0fb67ce 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/CreateInstanceAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/CreateInstanceAction.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class CreateInstanceAction( val bpmnProcessId: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/PublishMessageAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/PublishMessageAction.kt similarity index 61% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/PublishMessageAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/PublishMessageAction.kt index d745f76..02eb945 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/PublishMessageAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/PublishMessageAction.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class PublishMessageAction( val messageName: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/ThrowErrorAction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/ThrowErrorAction.kt similarity index 60% rename from core/src/main/kotlin/io/zeebe/bpmnspec/actions/ThrowErrorAction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/ThrowErrorAction.kt index a87a26e..53953e6 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/actions/ThrowErrorAction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/actions/ThrowErrorAction.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.actions +package org.camunda.community.zeebe.spec.actions -import io.zeebe.bpmnspec.api.Action -import io.zeebe.bpmnspec.api.TestContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.api.Action +import org.camunda.community.zeebe.spec.api.TestContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class ThrowErrorAction( val jobType: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Action.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Action.kt similarity index 50% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/Action.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Action.kt index 88c0318..355b4af 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Action.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Action.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider interface Action : Instruction { diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Condition.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Condition.kt new file mode 100644 index 0000000..7d49482 --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Condition.kt @@ -0,0 +1,4 @@ +package org.camunda.community.zeebe.spec.api + +interface Condition { +} \ No newline at end of file diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Instruction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Instruction.kt new file mode 100644 index 0000000..493de30 --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Instruction.kt @@ -0,0 +1,3 @@ +package org.camunda.community.zeebe.spec.api + +sealed interface Instruction \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/SpecTestRunnerContext.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/SpecTestRunnerContext.kt similarity index 72% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/SpecTestRunnerContext.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/SpecTestRunnerContext.kt index d74c13d..5f6e8ac 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/SpecTestRunnerContext.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/SpecTestRunnerContext.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api import io.camunda.zeebe.client.ZeebeClient diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestCase.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestCase.kt similarity index 72% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/TestCase.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestCase.kt index ed12121..53bb2af 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestCase.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestCase.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api data class TestCase( val name: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestContext.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestContext.kt similarity index 70% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/TestContext.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestContext.kt index 633e70f..e0eba5e 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestContext.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestContext.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api -import io.zeebe.bpmnspec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.ProcessInstanceKey import java.time.Duration data class TestContext( diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestOutput.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestOutput.kt new file mode 100644 index 0000000..3b97d7e --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestOutput.kt @@ -0,0 +1,15 @@ +package org.camunda.community.zeebe.spec.api + +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.dto.ElementInstance +import org.camunda.community.zeebe.spec.api.dto.Incident +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceVariable + +data class TestOutput( + val processInstanceKey: ProcessInstanceKey, + val state: ProcessInstanceState, + val elementInstances: List, + val variables: List, + val incidents: List +) \ No newline at end of file diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestResult.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestResult.kt new file mode 100644 index 0000000..8c60612 --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestResult.kt @@ -0,0 +1,10 @@ +package org.camunda.community.zeebe.spec.api + +data class TestResult( + val testCase: TestCase, + val success: Boolean, + val message: String, + val successfulVerifications: List, + val failedVerification: Verification? = null, + val output: List +) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpec.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpec.kt similarity index 55% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpec.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpec.kt index b86d24c..9257feb 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpec.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpec.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api data class TestSpec( val testCases: List diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpecResult.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpecResult.kt new file mode 100644 index 0000000..2c482fd --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/TestSpecResult.kt @@ -0,0 +1,6 @@ +package org.camunda.community.zeebe.spec.api + +data class TestSpecResult( + val spec: TestSpec, + val testResults: List +) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Verification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Verification.kt similarity index 51% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/Verification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Verification.kt index be91b4c..720ccd5 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/Verification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/Verification.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.api +package org.camunda.community.zeebe.spec.api -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.runner.SpecStateProvider interface Verification : Instruction { diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/VerificationResult.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/VerificationResult.kt new file mode 100644 index 0000000..0db9f73 --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/VerificationResult.kt @@ -0,0 +1,6 @@ +package org.camunda.community.zeebe.spec.api + +data class VerificationResult( + val isFulfilled: Boolean, + val failureMessage: String = "" +) \ No newline at end of file diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstance.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstance.kt similarity index 71% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstance.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstance.kt index b822977..7435fbe 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstance.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstance.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto data class ElementInstance( val elementId: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstanceState.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstanceState.kt similarity index 68% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstanceState.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstanceState.kt index dba6a99..dd312a2 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/ElementInstanceState.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/ElementInstanceState.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto enum class ElementInstanceState { UNKNOWN, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/Incident.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/Incident.kt similarity index 77% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/Incident.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/Incident.kt index 6df9a51..a5f580f 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/Incident.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/Incident.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto data class Incident( val errorType: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/IncidentState.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/IncidentState.kt similarity index 58% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/IncidentState.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/IncidentState.kt index f8b2a03..b186bcd 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/IncidentState.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/IncidentState.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto enum class IncidentState { UNKNOWN, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceState.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceState.kt similarity index 65% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceState.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceState.kt index 029bb38..2d2713b 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceState.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceState.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto enum class ProcessInstanceState { UNKNOWN, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceVariable.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceVariable.kt similarity index 77% rename from core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceVariable.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceVariable.kt index 52d7e6f..e54a466 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/api/dto/WorkflowInstanceVariable.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/api/dto/WorkflowInstanceVariable.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.api.dto +package org.camunda.community.zeebe.spec.api.dto data class ProcessInstanceVariable( val variableName: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/builder/ElementSelector.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/ElementSelector.kt similarity index 88% rename from core/src/main/kotlin/io/zeebe/bpmnspec/builder/ElementSelector.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/ElementSelector.kt index aea8385..6ef9331 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/builder/ElementSelector.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/ElementSelector.kt @@ -1,10 +1,11 @@ -package io.zeebe.bpmnspec.builder +package org.camunda.community.zeebe.spec.builder class ElementSelector internal constructor(val elementName: String?, val elementId: String?) { companion object { fun byName(elementName: String): ElementSelector { return ElementSelector(elementName, null); } + fun byId(elementId: String): ElementSelector { return ElementSelector(null, elementId); } diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/builder/SpecBuilder.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/SpecBuilder.kt similarity index 95% rename from core/src/main/kotlin/io/zeebe/bpmnspec/builder/SpecBuilder.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/SpecBuilder.kt index 8814422..efff325 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/builder/SpecBuilder.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/builder/SpecBuilder.kt @@ -1,12 +1,12 @@ -package io.zeebe.bpmnspec.builder +package org.camunda.community.zeebe.spec.builder import com.fasterxml.jackson.databind.ObjectMapper -import io.zeebe.bpmnspec.actions.* -import io.zeebe.bpmnspec.api.* -import io.zeebe.bpmnspec.api.dto.ElementInstanceState -import io.zeebe.bpmnspec.api.dto.IncidentState -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.verifications.* +import org.camunda.community.zeebe.spec.actions.* +import org.camunda.community.zeebe.spec.api.* +import org.camunda.community.zeebe.spec.api.dto.ElementInstanceState +import org.camunda.community.zeebe.spec.api.dto.IncidentState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.verifications.* @DslMarker annotation class TestSpecMarker diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Action.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Action.kt similarity index 62% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/Action.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Action.kt index ae2aeb4..258c40c 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Action.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Action.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format data class Action( val action: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Instruction.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Instruction.kt similarity index 93% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/Instruction.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Instruction.kt index 896e1c5..0497132 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Instruction.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Instruction.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format data class Instruction( val action: String?, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/SpecDeserializer.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/SpecDeserializer.kt similarity index 87% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/SpecDeserializer.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/SpecDeserializer.kt index 1032f70..a676174 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/SpecDeserializer.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/SpecDeserializer.kt @@ -1,14 +1,14 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.dataformat.yaml.YAMLFactory import com.fasterxml.jackson.module.kotlin.KotlinModule import com.fasterxml.jackson.module.kotlin.readValue -import io.zeebe.bpmnspec.actions.* -import io.zeebe.bpmnspec.api.dto.ElementInstanceState -import io.zeebe.bpmnspec.api.dto.IncidentState -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.verifications.* +import org.camunda.community.zeebe.spec.actions.* +import org.camunda.community.zeebe.spec.api.dto.ElementInstanceState +import org.camunda.community.zeebe.spec.api.dto.IncidentState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.verifications.* import java.io.InputStream class SpecDeserializer { @@ -16,40 +16,40 @@ class SpecDeserializer { private val kotlinModule = KotlinModule.Builder().build() private val objectMapper = ObjectMapper(YAMLFactory()).registerModule(kotlinModule) - fun readSpec(input: InputStream): io.zeebe.bpmnspec.api.TestSpec { + fun readSpec(input: InputStream): org.camunda.community.zeebe.spec.api.TestSpec { val spec = objectMapper.readValue(input) - return io.zeebe.bpmnspec.api.TestSpec( + return org.camunda.community.zeebe.spec.api.TestSpec( testCases = spec.testCases.map(this::transformTestCase) ) } - private fun transformTestCase(testCase: TestCase): io.zeebe.bpmnspec.api.TestCase { + private fun transformTestCase(testCase: TestCase): org.camunda.community.zeebe.spec.api.TestCase { val instructions = testCase.instructions ?.map { transformInstruction(it) } ?: testCase.let { - val instructions = mutableListOf() + val instructions = mutableListOf() instructions += it.actions?.map { transformAction(it) } ?: emptyList() instructions += it.verifications?.map { transformVerification(it) } ?: emptyList() instructions } - return io.zeebe.bpmnspec.api.TestCase( + return org.camunda.community.zeebe.spec.api.TestCase( name = testCase.name, description = testCase.description ?: "", instructions = instructions ) } - private fun transformInstruction(instruction: Instruction): io.zeebe.bpmnspec.api.Instruction { + private fun transformInstruction(instruction: Instruction): org.camunda.community.zeebe.spec.api.Instruction { return when (instruction.type()) { Instruction.InstructionType.ACTION -> transformAction(instruction.toAction()) Instruction.InstructionType.VERIFICATION -> transformVerification(instruction.toVerification()) } } - private fun transformAction(action: Action): io.zeebe.bpmnspec.api.Action { + private fun transformAction(action: Action): org.camunda.community.zeebe.spec.api.Action { val name = action.action.lowercase() val args = action.args ?: emptyMap() @@ -99,7 +99,7 @@ class SpecDeserializer { } } - private fun transformVerification(verification: Verification): io.zeebe.bpmnspec.api.Verification { + private fun transformVerification(verification: Verification): org.camunda.community.zeebe.spec.api.Verification { val name = verification.verification.lowercase() val args = verification.args ?: emptyMap() diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/TestCase.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestCase.kt similarity index 80% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/TestCase.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestCase.kt index 43fde1a..02fbcea 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/TestCase.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestCase.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format data class TestCase( val name: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/TestSpec.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestSpec.kt similarity index 77% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/TestSpec.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestSpec.kt index d801ce9..f79a6bf 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/TestSpec.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/TestSpec.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format data class TestSpec( @Deprecated("Explicit resources are not supported anymore.") diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Verification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Verification.kt similarity index 65% rename from core/src/main/kotlin/io/zeebe/bpmnspec/format/Verification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Verification.kt index 3d9bfaa..aef738d 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/format/Verification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/format/Verification.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.format +package org.camunda.community.zeebe.spec.format data class Verification( val verification: String, diff --git a/core/src/main/kotlin/org/camunda/community/zeebe/spec/package.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/package.kt new file mode 100644 index 0000000..fdc5743 --- /dev/null +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/package.kt @@ -0,0 +1,3 @@ +package org.camunda.community.zeebe.spec + +typealias ProcessInstanceKey = Long diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecActionExecutor.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecActionExecutor.kt similarity index 83% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecActionExecutor.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecActionExecutor.kt index d0e85d1..4ef56c4 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecActionExecutor.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecActionExecutor.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.runner +package org.camunda.community.zeebe.spec.runner -import io.zeebe.bpmnspec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.ProcessInstanceKey import java.io.InputStream diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecStateProvider.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecStateProvider.kt similarity index 56% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecStateProvider.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecStateProvider.kt index 95c89ed..ce66ed3 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/SpecStateProvider.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/SpecStateProvider.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec.runner +package org.camunda.community.zeebe.spec.runner -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.dto.ElementInstance -import io.zeebe.bpmnspec.api.dto.Incident -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.api.dto.ProcessInstanceVariable +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.dto.ElementInstance +import org.camunda.community.zeebe.spec.api.dto.Incident +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceVariable interface SpecStateProvider : AutoCloseable { diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/TestRunnerEnvironment.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/TestRunnerEnvironment.kt similarity index 63% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/TestRunnerEnvironment.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/TestRunnerEnvironment.kt index 48cf9b9..49048ff 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/TestRunnerEnvironment.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/TestRunnerEnvironment.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.runner +package org.camunda.community.zeebe.spec.runner -import io.zeebe.bpmnspec.api.SpecTestRunnerContext +import org.camunda.community.zeebe.spec.api.SpecTestRunnerContext interface TestRunnerEnvironment : AutoCloseable { diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeEnvironment.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeEnvironment.kt similarity index 79% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeEnvironment.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeEnvironment.kt index dc3f699..a01ed9c 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeEnvironment.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeEnvironment.kt @@ -1,11 +1,11 @@ -package io.zeebe.bpmnspec.runner.eze +package org.camunda.community.zeebe.spec.runner.eze import io.camunda.zeebe.client.ZeebeClient -import io.zeebe.bpmnspec.api.SpecTestRunnerContext -import io.zeebe.bpmnspec.runner.SpecActionExecutor -import io.zeebe.bpmnspec.runner.SpecStateProvider -import io.zeebe.bpmnspec.runner.TestRunnerEnvironment -import io.zeebe.bpmnspec.runner.zeebe.ZeebeSpecActionExecutor +import org.camunda.community.zeebe.spec.api.SpecTestRunnerContext +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.runner.TestRunnerEnvironment +import org.camunda.community.zeebe.spec.runner.zeebe.ZeebeSpecActionExecutor import org.camunda.community.eze.EngineFactory import org.camunda.community.eze.ZeebeEngine import org.slf4j.LoggerFactory diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeSpecStateProvider.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeSpecStateProvider.kt similarity index 96% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeSpecStateProvider.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeSpecStateProvider.kt index c1c3c26..65e7449 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/eze/EzeSpecStateProvider.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/eze/EzeSpecStateProvider.kt @@ -1,13 +1,13 @@ -package io.zeebe.bpmnspec.runner.eze +package org.camunda.community.zeebe.spec.runner.eze import io.camunda.zeebe.model.bpmn.Bpmn import io.camunda.zeebe.model.bpmn.instance.FlowElement import io.camunda.zeebe.protocol.record.intent.IncidentIntent import io.camunda.zeebe.protocol.record.intent.ProcessInstanceIntent import io.camunda.zeebe.protocol.record.value.BpmnElementType -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.dto.* -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.dto.* +import org.camunda.community.zeebe.spec.runner.SpecStateProvider import org.camunda.community.eze.RecordStream.events import org.camunda.community.eze.RecordStream.withElementType import org.camunda.community.eze.RecordStream.withKey diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeebe/ZeebeSpecActionExecutor.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeebe/ZeebeSpecActionExecutor.kt similarity index 95% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeebe/ZeebeSpecActionExecutor.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeebe/ZeebeSpecActionExecutor.kt index 539c97a..0beafee 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeebe/ZeebeSpecActionExecutor.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeebe/ZeebeSpecActionExecutor.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.runner.zeebe +package org.camunda.community.zeebe.spec.runner.zeebe import io.camunda.zeebe.client.ZeebeClient import io.camunda.zeebe.client.api.worker.JobWorker -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.runner.SpecActionExecutor +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.runner.SpecActionExecutor import org.slf4j.LoggerFactory import java.io.InputStream import java.time.Duration diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsClient.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsClient.kt similarity index 98% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsClient.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsClient.kt index 0b99acc..428c925 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsClient.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsClient.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.runner.zeeqs +package org.camunda.community.zeebe.spec.runner.zeeqs import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.KotlinModule diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsSpecStateProvider.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsSpecStateProvider.kt similarity index 92% rename from core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsSpecStateProvider.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsSpecStateProvider.kt index 64c0423..3732ffa 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/runner/zeeqs/ZeeqsSpecStateProvider.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/runner/zeeqs/ZeeqsSpecStateProvider.kt @@ -1,8 +1,8 @@ -package io.zeebe.bpmnspec.runner.zeeqs +package org.camunda.community.zeebe.spec.runner.zeeqs -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.dto.* -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.dto.* +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class ZeeqsSpecStateProvider( zeeqsClientProvider: () -> ZeeqsClient diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/ElementInstanceStateVerification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/ElementInstanceStateVerification.kt similarity index 81% rename from core/src/main/kotlin/io/zeebe/bpmnspec/verifications/ElementInstanceStateVerification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/ElementInstanceStateVerification.kt index 670dd54..f57f87c 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/ElementInstanceStateVerification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/ElementInstanceStateVerification.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec.verifications +package org.camunda.community.zeebe.spec.verifications -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.Verification -import io.zeebe.bpmnspec.api.VerificationResult -import io.zeebe.bpmnspec.api.dto.ElementInstanceState -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.Verification +import org.camunda.community.zeebe.spec.api.VerificationResult +import org.camunda.community.zeebe.spec.api.dto.ElementInstanceState +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class ElementInstanceStateVerification( val state: ElementInstanceState, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/IncidentStateVerification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/IncidentStateVerification.kt similarity index 84% rename from core/src/main/kotlin/io/zeebe/bpmnspec/verifications/IncidentStateVerification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/IncidentStateVerification.kt index c43a693..0c7d4b8 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/IncidentStateVerification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/IncidentStateVerification.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec.verifications +package org.camunda.community.zeebe.spec.verifications -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.Verification -import io.zeebe.bpmnspec.api.VerificationResult -import io.zeebe.bpmnspec.api.dto.IncidentState -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.Verification +import org.camunda.community.zeebe.spec.api.VerificationResult +import org.camunda.community.zeebe.spec.api.dto.IncidentState +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class IncidentStateVerification( val state: IncidentState, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/NoWorkflowInstanceVariableVerification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/NoWorkflowInstanceVariableVerification.kt similarity index 83% rename from core/src/main/kotlin/io/zeebe/bpmnspec/verifications/NoWorkflowInstanceVariableVerification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/NoWorkflowInstanceVariableVerification.kt index f331672..0f204dd 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/NoWorkflowInstanceVariableVerification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/NoWorkflowInstanceVariableVerification.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.verifications +package org.camunda.community.zeebe.spec.verifications -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.Verification -import io.zeebe.bpmnspec.api.VerificationResult -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.Verification +import org.camunda.community.zeebe.spec.api.VerificationResult +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class NoProcessInstanceVariableVerification( val variableName: String, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceStateVerification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceStateVerification.kt similarity index 70% rename from core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceStateVerification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceStateVerification.kt index 33ad1df..9db96ff 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceStateVerification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceStateVerification.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec.verifications +package org.camunda.community.zeebe.spec.verifications -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.Verification -import io.zeebe.bpmnspec.api.VerificationResult -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.Verification +import org.camunda.community.zeebe.spec.api.VerificationResult +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class ProcessInstanceStateVerification( val state: ProcessInstanceState, diff --git a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceVariableVerification.kt b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceVariableVerification.kt similarity index 86% rename from core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceVariableVerification.kt rename to core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceVariableVerification.kt index e8aac6c..ab749bb 100644 --- a/core/src/main/kotlin/io/zeebe/bpmnspec/verifications/WorkflowInstanceVariableVerification.kt +++ b/core/src/main/kotlin/org/camunda/community/zeebe/spec/verifications/WorkflowInstanceVariableVerification.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec.verifications +package org.camunda.community.zeebe.spec.verifications -import io.zeebe.bpmnspec.ProcessInstanceKey -import io.zeebe.bpmnspec.api.Verification -import io.zeebe.bpmnspec.api.VerificationResult -import io.zeebe.bpmnspec.runner.SpecStateProvider +import org.camunda.community.zeebe.spec.ProcessInstanceKey +import org.camunda.community.zeebe.spec.api.Verification +import org.camunda.community.zeebe.spec.api.VerificationResult +import org.camunda.community.zeebe.spec.runner.SpecStateProvider class ProcessInstanceVariableVerification( val variableName: String, diff --git a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecBuilderTest.kt b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecBuilderTest.kt similarity index 84% rename from core/src/test/kotlin/io/zeebe/bpmnspec/SpecBuilderTest.kt rename to core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecBuilderTest.kt index 9661461..4d47cc9 100644 --- a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecBuilderTest.kt +++ b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecBuilderTest.kt @@ -1,9 +1,9 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec -import io.zeebe.bpmnspec.api.dto.ElementInstanceState -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState -import io.zeebe.bpmnspec.builder.ElementSelector -import io.zeebe.bpmnspec.builder.testSpec +import org.camunda.community.zeebe.spec.api.dto.ElementInstanceState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.builder.ElementSelector +import org.camunda.community.zeebe.spec.builder.testSpec import org.assertj.core.api.Assertions import org.junit.jupiter.api.Test import java.time.Duration @@ -11,7 +11,7 @@ import java.time.Duration class SpecBuilderTest { private val resourceResolver = - ClasspathResourceResolver(classLoader = SpecTestRunnerTest::class.java.classLoader) + org.camunda.community.zeebe.spec.ClasspathResourceResolver(classLoader = SpecTestRunnerTest::class.java.classLoader) private val specRunner = SpecRunner( resourceResolver = resourceResolver, diff --git a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecFormatTest.kt b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecFormatTest.kt similarity index 83% rename from core/src/test/kotlin/io/zeebe/bpmnspec/SpecFormatTest.kt rename to core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecFormatTest.kt index a85233a..688e892 100644 --- a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecFormatTest.kt +++ b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecFormatTest.kt @@ -1,10 +1,10 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec -import io.zeebe.bpmnspec.actions.CompleteTaskAction -import io.zeebe.bpmnspec.actions.CreateInstanceAction -import io.zeebe.bpmnspec.format.SpecDeserializer -import io.zeebe.bpmnspec.verifications.ElementInstanceStateVerification -import io.zeebe.bpmnspec.verifications.ProcessInstanceStateVerification +import org.camunda.community.zeebe.spec.actions.CompleteTaskAction +import org.camunda.community.zeebe.spec.actions.CreateInstanceAction +import org.camunda.community.zeebe.spec.format.SpecDeserializer +import org.camunda.community.zeebe.spec.verifications.ElementInstanceStateVerification +import org.camunda.community.zeebe.spec.verifications.ProcessInstanceStateVerification import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test diff --git a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecTestRunnerTest.kt b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecTestRunnerTest.kt similarity index 91% rename from core/src/test/kotlin/io/zeebe/bpmnspec/SpecTestRunnerTest.kt rename to core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecTestRunnerTest.kt index 0644284..b3899ab 100644 --- a/core/src/test/kotlin/io/zeebe/bpmnspec/SpecTestRunnerTest.kt +++ b/core/src/test/kotlin/org/camunda/community/zeebe/spec/SpecTestRunnerTest.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec +package org.camunda.community.zeebe.spec -import io.zeebe.bpmnspec.api.dto.ProcessInstanceState +import org.camunda.community.zeebe.spec.api.dto.ProcessInstanceState import org.assertj.core.api.Assertions import org.junit.jupiter.api.Test import java.time.Duration @@ -8,7 +8,7 @@ import java.time.Duration class SpecTestRunnerTest { private val resourceResolver = - ClasspathResourceResolver(classLoader = SpecTestRunnerTest::class.java.classLoader) + org.camunda.community.zeebe.spec.ClasspathResourceResolver(classLoader = SpecTestRunnerTest::class.java.classLoader) private val specRunner = SpecRunner( resourceResolver = resourceResolver, diff --git a/core/src/test/resources/log4j2.xml b/core/src/test/resources/log4j2.xml index 3c9d21f..c9ecbe5 100644 --- a/core/src/test/resources/log4j2.xml +++ b/core/src/test/resources/log4j2.xml @@ -9,9 +9,9 @@ - + - + diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecAssertions.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecAssertions.kt similarity index 58% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecAssertions.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecAssertions.kt index 254c1a4..9618975 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecAssertions.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecAssertions.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.assertj +package org.camunda.community.zeebe.spec.assertj -import io.zeebe.bpmnspec.api.TestResult +import org.camunda.community.zeebe.spec.api.TestResult object SpecAssertions { diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecTestResultAssert.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecTestResultAssert.kt similarity index 92% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecTestResultAssert.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecTestResultAssert.kt index 00996f0..e8f16f2 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/assertj/SpecTestResultAssert.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/assertj/SpecTestResultAssert.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.assertj +package org.camunda.community.zeebe.spec.assertj -import io.zeebe.bpmnspec.api.TestOutput -import io.zeebe.bpmnspec.api.TestResult +import org.camunda.community.zeebe.spec.api.TestOutput +import org.camunda.community.zeebe.spec.api.TestResult import org.assertj.core.api.AbstractAssert class SpecTestResultAssert(actual: TestResult) : diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecRunner.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecRunner.kt similarity index 88% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecRunner.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecRunner.kt index 69e049e..a298cbf 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecRunner.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecRunner.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit import org.junit.jupiter.api.extension.ExtendWith diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecSource.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecSource.kt similarity index 91% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecSource.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecSource.kt index 53509b5..2636c8c 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecSource.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecSource.kt @@ -1,4 +1,4 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit import org.junit.jupiter.params.provider.ArgumentsSource diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCase.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCase.kt similarity index 69% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCase.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCase.kt index 678bd6b..875a6ff 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCase.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCase.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit -import io.zeebe.bpmnspec.api.TestCase +import org.camunda.community.zeebe.spec.api.TestCase data class BpmnSpecTestCase(val testCase: TestCase) { diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCaseArgumentsProvider.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCaseArgumentsProvider.kt similarity index 97% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCaseArgumentsProvider.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCaseArgumentsProvider.kt index 500056b..7341a32 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecTestCaseArgumentsProvider.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecTestCaseArgumentsProvider.kt @@ -1,6 +1,6 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit -import io.zeebe.bpmnspec.format.SpecDeserializer +import org.camunda.community.zeebe.spec.format.SpecDeserializer import org.junit.jupiter.api.extension.ExtensionContext import org.junit.jupiter.params.provider.Arguments import org.junit.jupiter.params.provider.ArgumentsProvider diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerInjectCallback.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerInjectCallback.kt similarity index 94% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerInjectCallback.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerInjectCallback.kt index c863fcb..6a02064 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerInjectCallback.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerInjectCallback.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit import io.camunda.zeebe.client.ZeebeClient -import io.zeebe.bpmnspec.api.SpecTestRunnerContext +import org.camunda.community.zeebe.spec.api.SpecTestRunnerContext import org.junit.jupiter.api.extension.BeforeEachCallback import org.junit.jupiter.api.extension.ExtensionContext import org.junit.platform.commons.util.ExceptionUtils diff --git a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerProvider.kt b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerProvider.kt similarity index 88% rename from junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerProvider.kt rename to junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerProvider.kt index 75d5571..868b195 100644 --- a/junit-extension/src/main/kotlin/io/zeebe/bpmnspec/junit/SpecRunnerProvider.kt +++ b/junit-extension/src/main/kotlin/org/camunda/community/zeebe/spec/junit/SpecRunnerProvider.kt @@ -1,10 +1,9 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit -import io.zeebe.bpmnspec.ClasspathResourceResolver -import io.zeebe.bpmnspec.SpecRunner -import io.zeebe.bpmnspec.api.SpecTestRunnerContext -import io.zeebe.bpmnspec.runner.TestRunnerEnvironment -import io.zeebe.bpmnspec.runner.eze.EzeEnvironment +import org.camunda.community.zeebe.spec.SpecRunner +import org.camunda.community.zeebe.spec.api.SpecTestRunnerContext +import org.camunda.community.zeebe.spec.runner.TestRunnerEnvironment +import org.camunda.community.zeebe.spec.runner.eze.EzeEnvironment import org.junit.jupiter.api.extension.ExtensionContext import org.junit.jupiter.api.extension.ExtensionContext.Namespace import org.junit.jupiter.api.extension.ParameterContext @@ -41,7 +40,7 @@ class SpecRunnerProvider : ParameterResolver { val resourceResolver = extensionContext ?.testClass ?.map { - ClasspathResourceResolver( + org.camunda.community.zeebe.spec.ClasspathResourceResolver( classLoader = it.classLoader, rootDirectory = resourceDirectory ) diff --git a/junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionInjectionTest.kt b/junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionInjectionTest.kt similarity index 93% rename from junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionInjectionTest.kt rename to junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionInjectionTest.kt index 3a8ae55..0e0d40a 100644 --- a/junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionInjectionTest.kt +++ b/junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionInjectionTest.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit import io.camunda.zeebe.client.ZeebeClient -import io.zeebe.bpmnspec.SpecRunner +import org.camunda.community.zeebe.spec.SpecRunner import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.params.ParameterizedTest diff --git a/junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionTest.kt b/junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionTest.kt similarity index 81% rename from junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionTest.kt rename to junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionTest.kt index 7153b75..ec76440 100644 --- a/junit-extension/src/test/kotlin/io/zeebe/bpmnspec/junit/BpmnSpecExtensionTest.kt +++ b/junit-extension/src/test/kotlin/org/camunda/community/zeebe/spec/junit/BpmnSpecExtensionTest.kt @@ -1,7 +1,7 @@ -package io.zeebe.bpmnspec.junit +package org.camunda.community.zeebe.spec.junit -import io.zeebe.bpmnspec.SpecRunner -import io.zeebe.bpmnspec.assertj.SpecAssertions.assertThat +import org.camunda.community.zeebe.spec.SpecRunner +import org.camunda.community.zeebe.spec.assertj.SpecAssertions.assertThat import org.junit.jupiter.params.ParameterizedTest @BpmnSpecRunner diff --git a/junit-extension/src/test/resources/log4j2.xml b/junit-extension/src/test/resources/log4j2.xml index 3c9d21f..c9ecbe5 100644 --- a/junit-extension/src/test/resources/log4j2.xml +++ b/junit-extension/src/test/resources/log4j2.xml @@ -9,9 +9,9 @@ - + - +