diff --git a/data-index/data-index-service/pom.xml b/data-index/data-index-service/pom.xml
index 3a4218d6723..1401e228421 100644
--- a/data-index/data-index-service/pom.xml
+++ b/data-index/data-index-service/pom.xml
@@ -10,18 +10,6 @@
data-index-service
Kogito :: Data Index Service
-
-
-
- io.quarkus
- quarkus-bom
- ${version.io.quarkus}
- pom
- import
-
-
-
-
org.kie.kogito
diff --git a/data-index/data-index-service/src/main/java/org/kie/kogito/index/vertx/VertxRouterSetup.java b/data-index/data-index-service/src/main/java/org/kie/kogito/index/vertx/VertxRouterSetup.java
index 223515c10ba..a84cb80a35b 100644
--- a/data-index/data-index-service/src/main/java/org/kie/kogito/index/vertx/VertxRouterSetup.java
+++ b/data-index/data-index-service/src/main/java/org/kie/kogito/index/vertx/VertxRouterSetup.java
@@ -16,8 +16,6 @@
package org.kie.kogito.index.vertx;
-import java.util.concurrent.atomic.AtomicBoolean;
-
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
@@ -39,17 +37,13 @@ public class VertxRouterSetup {
@Inject
GraphQL graphQL;
- private AtomicBoolean routesAdded = new AtomicBoolean(false);
-
void setupRouter(@Observes Router router) {
- if (!routesAdded.get()) {
- router.route("/graphql").handler(ApolloWSHandler.create(graphQL));
- router.route("/graphql").handler(GraphQLHandler.create(graphQL, new GraphQLHandlerOptions()));
- router.route("/graphiql/*").handler(GraphiQLHandler.create(new GraphiQLHandlerOptions().setEnabled(true)));
- router.route("/").handler(ctx -> ctx.reroute("/graphiql"));
- router.route().handler(LoggerHandler.create());
- router.route().handler(StaticHandler.create());
- router.route().handler(FaviconHandler.create());
- }
+ router.route("/graphql").handler(ApolloWSHandler.create(graphQL));
+ router.route("/graphql").handler(GraphQLHandler.create(graphQL, new GraphQLHandlerOptions()));
+ router.route("/graphiql/*").handler(GraphiQLHandler.create(new GraphiQLHandlerOptions().setEnabled(true)));
+ router.route("/").handler(ctx -> ctx.reroute("/graphiql"));
+ router.route().handler(LoggerHandler.create());
+ router.route().handler(StaticHandler.create());
+ router.route().handler(FaviconHandler.create());
}
}
diff --git a/data-index/data-index-storage/data-index-storage-infinispan/pom.xml b/data-index/data-index-storage/data-index-storage-infinispan/pom.xml
index 3aa1e7c1612..dfbeae79801 100644
--- a/data-index/data-index-storage/data-index-storage-infinispan/pom.xml
+++ b/data-index/data-index-storage/data-index-storage-infinispan/pom.xml
@@ -12,18 +12,6 @@
data-index-storage-infinispan
Kogito :: Data Index Storage Infinispan
-
-
-
- io.quarkus
- quarkus-bom
- ${version.io.quarkus}
- pom
- import
-
-
-
-
org.kie.kogito
diff --git a/drools/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java b/drools/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java
index 330917d28e8..b3aa9e03aad 100755
--- a/drools/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java
+++ b/drools/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java
@@ -111,7 +111,7 @@ public void isOkayToReinsertSameTypeThenQuery(final ClassAwareObjectStore underT
@ClassAwareObjectStoreParameterizedTest
public void onceSuperClassIsSetUpForReadingItCanBecomeSetUpForWritingWithoutGettingDuplicateQueryReturns(final ClassAwareObjectStore underTest) throws Exception {
- assertThat(underTest.iterateObjects(SuperClass.class)).isEmpty();
+ assertThat(collect(underTest.iterateObjects(SuperClass.class))).isEmpty();
insertObjectWithFactHandle(underTest, new SubClass());
insertObjectWithFactHandle(underTest, new SuperClass());
@@ -127,11 +127,11 @@ public void onceSuperClassIsSetUpForReadingItCanBecomeSetUpForWritingWithoutGett
@ClassAwareObjectStoreParameterizedTest
public void clearRemovesInsertedObjects(final ClassAwareObjectStore underTest) throws Exception {
insertObjectWithFactHandle(underTest, new SimpleClass());
- assertThat(underTest.iterateObjects()).hasSize(1);
+ assertThat(collect(underTest.iterateObjects())).hasSize(1);
underTest.clear();
- assertThat(underTest.iterateObjects()).isEmpty();
+ assertThat(collect(underTest.iterateObjects())).isEmpty();
}
@ClassAwareObjectStoreParameterizedTest
@@ -150,8 +150,8 @@ public void iteratingOverFactHandlesHasSameNumberOfResultsAsIteratingOverObjects
insertObjectWithFactHandle(underTest, new SuperClass());
insertObjectWithFactHandle(underTest, new SubClass());
- assertThat(underTest.iterateFactHandles(SubClass.class)).hasSize(1);
- assertThat(underTest.iterateFactHandles(SuperClass.class)).hasSize(2);
+ assertThat(collect(underTest.iterateFactHandles(SubClass.class))).hasSize(1);
+ assertThat(collect(underTest.iterateFactHandles(SuperClass.class))).hasSize(2);
}
diff --git a/pom.xml b/pom.xml
index 61de0d2b316..f0da3832d46 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,6 +76,13 @@
pom
import
+
+ io.quarkus
+ quarkus-bom
+ ${version.io.quarkus}
+ pom
+ import
+