This is an automated email from the ASF dual-hosted git repository.
jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push:
new c9f96bf967 Fix of compilation error in test-framework
c9f96bf967 is described below
commit c9f96bf967b704363f1f66ccffdfc4dd24360f94
Author: JiriOndrusek <[email protected]>
AuthorDate: Mon May 27 16:05:44 2024 +0200
Fix of compilation error in test-framework
---
.../camel/quarkus/test/CamelQuarkusTestSupport.java | 2 +-
.../quarkus/test/common/AbstractCallbacksTest.java | 17 ++++++++---------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
index 70910d51d8..62c1a21af7 100644
---
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
+++
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
@@ -267,7 +267,7 @@ public class CamelQuarkusTestSupport extends
CamelTestSupport
* Method is not intended to be overridden.
*/
@Override
- protected final void doQuarkusCheck() {
+ protected final void unsupportedCheck() {
//can run on Quarkus
//log warning in case that at least one RouteBuilder in the registry,
it might mean, that unintentionally
diff --git
a/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/common/AbstractCallbacksTest.java
b/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/common/AbstractCallbacksTest.java
index 4d9d7b5501..77c6b64c7f 100644
---
a/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/common/AbstractCallbacksTest.java
+++
b/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/common/AbstractCallbacksTest.java
@@ -36,15 +36,15 @@ import org.apache.camel.RoutesBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.quarkus.test.CamelQuarkusTestSupport;
-import org.apache.camel.quarkus.test.junit5.patterns.DebugJUnit5Test;
import org.apache.camel.util.StopWatch;
import org.jboss.logging.Logger;
import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public abstract class AbstractCallbacksTest extends CamelQuarkusTestSupport {
- private static final Logger LOG = Logger.getLogger(DebugJUnit5Test.class);
+ private static final Logger LOG =
Logger.getLogger(AbstractCallbacksTest.class);
public enum Callback {
postTearDown,
@@ -69,6 +69,12 @@ public abstract class AbstractCallbacksTest extends
CamelQuarkusTestSupport {
this.afterClassTestName = afterClassTestName;
}
+ @BeforeEach
+ protected void createTmpFiles() throws Exception {
+ createTmpFile(testName, Callback.doSetup);
+ createTmpFile(afterClassTestName, Callback.doSetup);
+ }
+
@Override
protected CamelContext createCamelContext() throws Exception {
createTmpFile(testName, Callback.contextCreation);
@@ -83,13 +89,6 @@ public abstract class AbstractCallbacksTest extends
CamelQuarkusTestSupport {
super.doPostSetup();
}
- @Override
- protected void doSetUp() throws Exception {
- createTmpFile(testName, Callback.doSetup);
- createTmpFile(afterClassTestName, Callback.doSetup);
- super.doSetUp();
- }
-
@Override
protected void doPostSetup() throws Exception {
createTmpFile(testName, Callback.postSetup);