Skip to content

Commit

Permalink
Fix apache#2608 to create destination correctly and re-enable the tes…
Browse files Browse the repository at this point in the history
…t case
  • Loading branch information
zhfeng committed Jun 4, 2021
1 parent b5833d5 commit 78d0858
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ public DestinationResolver customDestinationResolver() {
// Ignore and override the original queue name
return session.createQueue("destinationOverride");
}
return session.createQueue(destinationName);

if (pubSubDomain) {
return session.createTopic(destinationName);
} else {
return session.createQueue(destinationName);
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
Expand Down Expand Up @@ -126,7 +125,6 @@ public void testJmsMessageConverter() {
}

@Test
@Disabled("https://github.com/apache/camel-quarkus/issues/2608")
public void testJmsTopic() {
String message = "Camel JMS Topic Message";
RestAssured.given()
Expand Down

0 comments on commit 78d0858

Please sign in to comment.