Skip to content

Commit

Permalink
Fixed tests for quarkus-lts (#3184)
Browse files Browse the repository at this point in the history
* Fixed tests for quarkus-lts

Signed-off-by: Helber Belmiro <[email protected]>

* Fixed compilation error.

Signed-off-by: Helber Belmiro <[email protected]>

* Removed jetbrains annotation.

Signed-off-by: Helber Belmiro <[email protected]>

---------

Signed-off-by: Helber Belmiro <[email protected]>
  • Loading branch information
hbelmiro authored Aug 24, 2023
1 parent ef29c7f commit 2b7013e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.jbpm.ruleflow.core.RuleFlowNodeContainerFactory;
import org.jbpm.ruleflow.core.factory.NodeFactory;
import org.jbpm.ruleflow.core.factory.WorkItemNodeFactory;
import org.jetbrains.annotations.NotNull;
import org.kie.kogito.addons.quarkus.knative.serving.customfunctions.CloudEventKnativeParamsDecorator;
import org.kie.kogito.addons.quarkus.knative.serving.customfunctions.KnativeWorkItemHandler;
import org.kie.kogito.addons.quarkus.knative.serving.customfunctions.Operation;
Expand Down Expand Up @@ -85,7 +84,6 @@ public class KnativeTypeHandler extends WorkItemTypeHandler {
functionRef);
}

@NotNull
private static List<String> getPayloadFields(FunctionRef functionRef) {
List<String> payloadFields = new ArrayList<>();

Expand Down
6 changes: 6 additions & 0 deletions quarkus/addons/knative/serving/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
<artifactId>kogito-addons-quarkus-fabric8-kubernetes-service-catalog-test-utils</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-serverless-workflow-deployment</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
<artifactId>wiremock-jre8</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-serverless-workflow-deployment</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private WorkflowHandlerGeneratedFile generateHandler(KogitoBuildContext context,
BlockStmt body = executeMethod.createBody();
MethodCallExpr methodCallExpr = new MethodCallExpr(new NameExpr(OPEN_API_REF), m.name());
final NameExpr parameters = new NameExpr(WORK_ITEM_PARAMETERS);
if (m.returnType().name().equals(DotName.createSimple(Response.class))) {
if (m.returnType().name().equals(DotName.createSimple(Response.class.getName()))) {
body.addStatement(methodCallExpr).addStatement(new ReturnStmt(new NullLiteralExpr()));
} else {
body.addStatement(new ReturnStmt(methodCallExpr));
Expand Down

0 comments on commit 2b7013e

Please sign in to comment.