This is an automated email from the ASF dual-hosted git repository.
yamer pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 420e9d1dd kie-issues#1678: Adapt Test Scenario Runner to JUnit 5 Test
Engine (#2103)
420e9d1dd is described below
commit 420e9d1dd8f5e65a927292fc51bc91fa58ffe492
Author: Yeser Amer <[email protected]>
AuthorDate: Fri May 23 14:20:16 2025 +0200
kie-issues#1678: Adapt Test Scenario Runner to JUnit 5 Test Engine (#2103)
* WIP
* WIP
* WIP
* WIP
---
...st.java => TestScenarioJunitActivatorTest.java} | 8 +++---
...st.java => TestScenarioJunitActivatorTest.java} | 8 +++---
...st.java => TestScenarioJunitActivatorTest.java} | 8 +++---
...st.java => TestScenarioJunitActivatorTest.java} | 8 +++---
.../rules-legacy-scesim-quarkus-example/pom.xml | 11 --------
.../resources/org/kie/kogito/legacy/HelloRule.drl | 2 --
.../testscenario/ScenarioJunitActivatorTest.java | 29 ----------------------
.../TestScenarioJunitActivatorTest.java} | 10 +++++---
.../src/test/resources/application.properties | 4 +--
.../KogitoScenarioJunitActivatorTest.java | 29 ----------------------
.../TestScenarioJunitActivatorTest.java | 8 +++---
.../KogitoScenarioJunitActivatorTest.java | 29 ----------------------
.../TestScenarioJunitActivatorTest.java | 8 +++---
.../KogitoScenarioJunitActivatorTest.java | 29 ----------------------
.../TestScenarioJunitActivatorTest.java | 8 +++---
.../rules-legacy-scesim-springboot-example/pom.xml | 11 --------
.../testscenario/ScenarioJunitActivatorTest.java | 26 -------------------
.../TestScenarioJunitActivatorTest.java | 10 +++++---
.../src/test/resources/logback-test.xml | 4 +--
19 files changed, 51 insertions(+), 199 deletions(-)
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
copy from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
copy to
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
rename from
kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
rename to
kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
rename from
kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
rename to
kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
rename from
kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
rename to
kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-quarkus-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml
index c47e978ce..bf6dc8f52 100644
--- a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml
+++ b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml
@@ -55,12 +55,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-xml-support</artifactId>
- <version>${version.org.kie.kogito}</version>
- <scope>test</scope>
- </dependency>
</dependencies>
</dependencyManagement>
<dependencies>
@@ -108,11 +102,6 @@
<artifactId>kogito-scenario-simulation</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-xml-support</artifactId>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
diff --git
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl
index af997ef75..01bde1939 100644
---
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl
+++
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl
@@ -23,13 +23,11 @@ import org.kie.kogito.legacy.Hello;
rule HelloApprove when
$l: Hello( greeting.equals("foo") )
then
- System.out.println("HelloApprove");
modify($l) { setApproved(true) };
end
rule HelloDeny when
$l: Hello( greeting != "foo" )
then
- System.out.println("HelloDeny");
modify($l) { setApproved(false) };
end
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
deleted file mode 100644
index 57d2ebc6c..000000000
---
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 testscenario;
-
-import io.quarkus.test.junit.QuarkusTest;
-
-/**
- * Do not remove this file
- */
-@QuarkusTest
[email protected](org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.class)
-public class ScenarioJunitActivatorTest {
-}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
copy from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
copy to
kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..3910034b3 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
-}
\ No newline at end of file
+}
diff --git
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties
index 0841afd17..7583379b9 100644
---
a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties
+++
b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties
@@ -21,5 +21,5 @@
quarkus.http.test-port=0
quarkus.log.level=INFO
-quarkus.log.category."org.kie.kogito".level=DEBUG
-quarkus.log.category."org.drools".level=DEBUG
\ No newline at end of file
+quarkus.log.category."org.kie.kogito".level=INFO
+quarkus.log.category."org.drools".level=INFO
\ No newline at end of file
diff --git
a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
deleted file mode 100644
index 4b19a1201..000000000
---
a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 testscenario;
-
-/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
- * This activator class, when executed, will load all scesim files available
in the project and run them.
- * Each row of the scenario will generate a test JUnit result.
- */
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
-
-}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
copy from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
copy to
kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
deleted file mode 100644
index 4b19a1201..000000000
---
a/kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 testscenario;
-
-/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
- * This activator class, when executed, will load all scesim files available
in the project and run them.
- * Each row of the scenario will generate a test JUnit result.
- */
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
-
-}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
copy from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
copy to
kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-springboot-examples/dmn-resource-jar-springboot-example/dmn-springboot-consumer-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
deleted file mode 100644
index 4b19a1201..000000000
---
a/kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 testscenario;
-
-/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
- * This activator class, when executed, will load all scesim files available
in the project and run them.
- * Each row of the scenario will generate a test JUnit result.
- */
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
-
-}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
copy from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
copy to
kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..538d8b100 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-springboot-examples/dmn-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
}
\ No newline at end of file
diff --git
a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml
index 87db586dc..8c6afc207 100644
--- a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml
+++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml
@@ -47,12 +47,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-xml-support</artifactId>
- <version>${version.org.kie.kogito}</version>
- <scope>test</scope>
- </dependency>
</dependencies>
</dependencyManagement>
@@ -83,11 +77,6 @@
<artifactId>kogito-scenario-simulation</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-xml-support</artifactId>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
diff --git
a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
deleted file mode 100644
index 13bd96d81..000000000
---
a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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 testscenario;
-
-/**
- * Do not remove this file
- */
[email protected](org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.class)
-public class ScenarioJunitActivatorTest {
-}
\ No newline at end of file
diff --git
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
similarity index 79%
rename from
kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
rename to
kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
index 4b19a1201..3910034b3 100644
---
a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java
+++
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/TestScenarioJunitActivatorTest.java
@@ -18,12 +18,14 @@
*/
package testscenario;
+import org.drools.scenariosimulation.backend.runner.TestScenarioActivator;
+
/**
- * KogitoJunitActivator is a custom JUnit runner that enables the execution of
Test Scenario files (*.scesim).
+ * TestScenarioJunitActivator is a custom JUnit runner that enables the
execution of Test Scenario files (*.scesim).
* This activator class, when executed, will load all scesim files available
in the project and run them.
* Each row of the scenario will generate a test JUnit result.
*/
[email protected](org.kogito.scenariosimulation.runner.KogitoJunitActivator.class)
-public class KogitoScenarioJunitActivatorTest {
+@TestScenarioActivator
+public class TestScenarioJunitActivatorTest {
-}
\ No newline at end of file
+}
diff --git
a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml
index 4ca6ba0f5..e0e6ab447 100644
---
a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml
+++
b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml
@@ -27,8 +27,8 @@
</encoder>
</appender>
- <logger name="org.kie.kogito" level="DEBUG" />
- <logger name="org.drools" level="DEBUG" />
+ <logger name="org.kie.kogito" level="INFO" />
+ <logger name="org.drools" level="INFO" />
<root level="info">
<appender-ref ref="consoleAppender" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]