Skip to content

Commit

Permalink
refactor: rename packages
Browse files Browse the repository at this point in the history
Rename packages from `io.zeebe.bpmnspec` to `org.camunda.community.zeebe.spec` to align with the new project name.
  • Loading branch information
saig0 committed Feb 11, 2023
1 parent ccc9860 commit 8f91eda
Show file tree
Hide file tree
Showing 72 changed files with 234 additions and 234 deletions.
4 changes: 0 additions & 4 deletions core/src/main/kotlin/io/zeebe/bpmnspec/api/Condition.kt

This file was deleted.

3 changes: 0 additions & 3 deletions core/src/main/kotlin/io/zeebe/bpmnspec/api/Instruction.kt

This file was deleted.

15 changes: 0 additions & 15 deletions core/src/main/kotlin/io/zeebe/bpmnspec/api/TestOutput.kt

This file was deleted.

10 changes: 0 additions & 10 deletions core/src/main/kotlin/io/zeebe/bpmnspec/api/TestResult.kt

This file was deleted.

6 changes: 0 additions & 6 deletions core/src/main/kotlin/io/zeebe/bpmnspec/api/TestSpecResult.kt

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions core/src/main/kotlin/io/zeebe/bpmnspec/package.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec
package org.camunda.community.zeebe.spec

import java.io.File
import java.io.FilenameFilter
Expand All @@ -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<File> {
return classLoader.getResource(rootDirectory)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec
package org.camunda.community.zeebe.spec

import java.io.File
import java.io.FilenameFilter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec
package org.camunda.community.zeebe.spec

import java.io.File

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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?
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.camunda.community.zeebe.spec.api

interface Condition {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package org.camunda.community.zeebe.spec.api

sealed interface Instruction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api
package org.camunda.community.zeebe.spec.api

import io.camunda.zeebe.client.ZeebeClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api
package org.camunda.community.zeebe.spec.api

data class TestCase(
val name: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ElementInstance>,
val variables: List<ProcessInstanceVariable>,
val incidents: List<Incident>
)
Original file line number Diff line number Diff line change
@@ -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<Verification>,
val failedVerification: Verification? = null,
val output: List<TestOutput>
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api
package org.camunda.community.zeebe.spec.api

data class TestSpec(
val testCases: List<TestCase>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.camunda.community.zeebe.spec.api

data class TestSpecResult(
val spec: TestSpec,
val testResults: List<TestResult>
)
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.camunda.community.zeebe.spec.api

data class VerificationResult(
val isFulfilled: Boolean,
val failureMessage: String = ""
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

data class ElementInstance(
val elementId: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

enum class ElementInstanceState {
UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

data class Incident(
val errorType: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

enum class IncidentState {
UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

enum class ProcessInstanceState {
UNKNOWN,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.api.dto
package org.camunda.community.zeebe.spec.api.dto

data class ProcessInstanceVariable(
val variableName: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.format
package org.camunda.community.zeebe.spec.format

data class Action(
val action: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.zeebe.bpmnspec.format
package org.camunda.community.zeebe.spec.format

data class Instruction(
val action: String?,
Expand Down
Loading

0 comments on commit 8f91eda

Please sign in to comment.