This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 6ea8b2c CAMEL-15143: Fixed test to not use undertow
6ea8b2c is described below
commit 6ea8b2c69e71cb642fb898ca8475bfbc48c98e09
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 10 13:32:05 2020 +0200
CAMEL-15143: Fixed test to not use undertow
---
components/camel-swagger-java/pom.xml | 9 ---------
.../camel/swagger/RestSwaggerReaderPropertyPlaceholderTest.java | 9 +++++----
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/components/camel-swagger-java/pom.xml
b/components/camel-swagger-java/pom.xml
index 5e15714..be567d1 100644
--- a/components/camel-swagger-java/pom.xml
+++ b/components/camel-swagger-java/pom.xml
@@ -130,15 +130,6 @@
<version>2.5</version>
<scope>provided</scope>
</dependency>
-
- <!-- testing -->
- <!--
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-undertow</artifactId>
- <scope>test</scope>
- </dependency>
- -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring-junit5</artifactId>
diff --git
a/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderPropertyPlaceholderTest.java
b/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderPropertyPlaceholderTest.java
index c660b66..260c9a4 100644
---
a/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderPropertyPlaceholderTest.java
+++
b/components/camel-swagger-java/src/test/java/org/apache/camel/swagger/RestSwaggerReaderPropertyPlaceholderTest.java
@@ -31,14 +31,12 @@ import org.apache.camel.model.rest.RestDefinition;
import org.apache.camel.model.rest.RestParamType;
import org.apache.camel.swagger.producer.DummyRestProducerFactory;
import org.apache.camel.test.junit5.CamelTestSupport;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import static org.junit.jupiter.api.Assertions.*;
public class RestSwaggerReaderPropertyPlaceholderTest extends CamelTestSupport
{
@@ -47,6 +45,9 @@ public class RestSwaggerReaderPropertyPlaceholderTest extends
CamelTestSupport {
@BindToRegistry("dummy-rest")
private DummyRestProducerFactory factory = new DummyRestProducerFactory();
+ @BindToRegistry("dummy-rest-consumer")
+ private DummyRestConsumerFactory consumerFactory = new
DummyRestConsumerFactory();
+
@Override
protected boolean useJmx() {
return true;