Skip to content

Commit

Permalink
Consolidate microprofile integration tests apache#433
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Nov 17, 2019
1 parent a2d7095 commit d8fda80
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 172 deletions.
128 changes: 0 additions & 128 deletions integration-tests/microprofile-health/pom.xml

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@
<version>0.4.1-SNAPSHOT</version>
</parent>

<artifactId>camel-quarkus-integration-test-microprofile-metrics</artifactId>
<name>Camel Quarkus :: Integration Tests :: Microprofile Metrics</name>
<description>Integration tests for Camel Quarkus microprofile-metrics extension</description>
<artifactId>camel-quarkus-integration-test-microprofile</artifactId>
<name>Camel Quarkus :: Integration Tests :: MicroProfile</name>
<description>Integration tests for Camel Quarkus MicroProfile extensions</description>

<dependencies>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-microprofile-health</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-microprofile-metrics</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import org.apache.camel.builder.RouteBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.metrics.it;
package org.apache.camel.quarkus.component.microprofile.it.metrics;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.metrics.it;
package org.apache.camel.quarkus.component.microprofile.it.metrics;

import org.apache.camel.builder.RouteBuilder;
import static org.apache.camel.component.microprofile.metrics.MicroProfileMetricsConstants.HEADER_GAUGE_VALUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
## ---------------------------------------------------------------------------

#
# Camel
# Quarkus - Camel
#
camel.context.name = quarkus-camel-example
quarkus.camel.metrics.enable-message-history = true


#
# Camel
#
camel.context.name = quarkus-camel-example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.health.it;
package org.apache.camel.quarkus.component.microprofile.it.health;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.metrics.it;
package org.apache.camel.quarkus.component.microprofile.it.metrics;

import java.util.Map;

import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.path.json.JsonPath;

import org.apache.camel.ServiceStatus;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -112,9 +112,9 @@ public void testMicroProfileMetricsMessageHistoryFactory() {
}

@Test
public void testMicroProfileMetricsRouteEventNotifier() throws InterruptedException {
assertEquals(7, getMetricIntValue("camel.route.count"));
assertEquals(7, getMetricIntValue("camel.route.running.count"));
public void testMicroProfileMetricsRouteEventNotifier() {
assertTrue(getMetricIntValue("camel.route.count") >= 7);
assertTrue(getMetricIntValue("camel.route.running.count") >= 7);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.quarkus.component.microprofile.metrics.it;
package org.apache.camel.quarkus.component.microprofile.it.metrics;

import io.quarkus.test.junit.NativeImageTest;

Expand Down
3 changes: 1 addition & 2 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
<module>jackson</module>
<module>jdbc</module>
<module>mail</module>
<module>microprofile-health</module>
<module>microprofile-metrics</module>
<module>microprofile</module>
<module>netty</module>
<module>netty-http</module>
<module>opentracing</module>
Expand Down

0 comments on commit d8fda80

Please sign in to comment.