-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(extensions): verify fields are injected into superclass
The extensions should inject the ZeebeClient and the ZeebeTestEngine into the fields available with this type. This test will verify that this happens for both the embedded engine and the testcontainers engine.
- Loading branch information
1 parent
9badb55
commit db97f19
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...o/camunda/zeebe/process/test/qa/abstracts/injection/AbstractInheritanceInjectionTest.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,34 @@ | ||
/* | ||
* Copyright © 2021 camunda services GmbH (info@camunda.com) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.camunda.zeebe.process.test.qa.abstracts.injection; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import io.camunda.zeebe.client.ZeebeClient; | ||
import io.camunda.zeebe.process.test.api.ZeebeTestEngine; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public abstract class AbstractInheritanceInjectionTest { | ||
protected ZeebeClient client; | ||
protected ZeebeTestEngine engine; | ||
|
||
@Test | ||
void testFieldsAreInjectedSuccessfully() { | ||
assertThat(client).isNotNull(); | ||
assertThat(engine).isNotNull(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...st/java/io/camunda/zeebe/process/test/qa/embedded/injection/InheritanceInjectionTest.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,23 @@ | ||
/* | ||
* Copyright © 2021 camunda services GmbH (info@camunda.com) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.camunda.zeebe.process.test.qa.embedded.injection; | ||
|
||
import io.camunda.zeebe.process.test.extension.ZeebeProcessTest; | ||
import io.camunda.zeebe.process.test.qa.abstracts.injection.AbstractInheritanceInjectionTest; | ||
|
||
@ZeebeProcessTest | ||
class InheritanceInjectionTest extends AbstractInheritanceInjectionTest {} |
23 changes: 23 additions & 0 deletions
23
...va/io/camunda/zeebe/process/test/qa/testcontainer/injection/InheritanceInjectionTest.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,23 @@ | ||
/* | ||
* Copyright © 2021 camunda services GmbH (info@camunda.com) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.camunda.zeebe.process.test.qa.testcontainer.injection; | ||
|
||
import io.camunda.zeebe.process.test.extension.testcontainer.ZeebeProcessTest; | ||
import io.camunda.zeebe.process.test.qa.abstracts.injection.AbstractInheritanceInjectionTest; | ||
|
||
@ZeebeProcessTest | ||
class InheritanceInjectionTest extends AbstractInheritanceInjectionTest {} |