Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsatisfied dependency on running unit tests #1671

Open
rahilfayz opened this issue Mar 13, 2023 · 0 comments
Open

Unsatisfied dependency on running unit tests #1671

rahilfayz opened this issue Mar 13, 2023 · 0 comments
Assignees

Comments

@rahilfayz
Copy link

Describe the bug

The kogito project is implemented with kotlin and gradle and quarkus.
The project same as java project with maven, and it running perfectly. But with kotlin and gradle has Unsatisfied dependency issue.
When I'm running with this command ./gradlew quarkusTest, I got this error:
: java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: Found 2 deployment problems: [1] Ambiguous dependencies for type org.kie.kogito.process.Process<? extends org.kie.kogito.Model> and qualifiers [@Default] - java member: org.acme.travel.BookHotelTest#bookHotelProcess - declared on CLASS bean [types=[org.acme.travel.BookHotelTest, java.lang.Object], qualifiers=[@Default, @Any], target=org.acme.travel.BookHotelTest] - available beans: - CLASS bean [types=[org.kie.kogito.process.impl.AbstractProcess<org.acme.travels.TravelsModel>, org.jbpm.process.core.ProcessSupplier, java.util.function.Supplier<org.kie.api.definition.process.Process>, java.lang.Object, org.acme.travels.TravelsProcess, org.kie.kogito.process.Process<org.acme.travels.TravelsModel>], qualifiers=[@Named("travels"), @Default, @Any], target=org.acme.travels.TravelsProcess] - CLASS bean [types=[org.kie.kogito.process.impl.AbstractProcess<org.acme.travels.HotelBookingModel>, org.jbpm.process.core.ProcessSupplier, java.util.function.Supplier<org.kie.api.definition.process.Process>, org.kie.kogito.process.Process<org.acme.travels.HotelBookingModel>, java.lang.Object, org.acme.travels.HotelBookingProcess], qualifiers=[@Named("hotelBooking"), @Default, @Any], target=org.acme.travels.HotelBookingProcess] - CLASS bean [types=[org.acme.travels.FlightBookingProcess, org.kie.kogito.process.impl.AbstractProcess<org.acme.travels.FlightBookingModel>, org.jbpm.process.core.ProcessSupplier, java.util.function.Supplier<org.kie.api.definition.process.Process>, org.kie.kogito.process.Process<org.acme.travels.FlightBookingModel>, java.lang.Object], qualifiers=[@Named("flightBooking"), @Default, @Any], target=org.acme.travels.FlightBookingProcess] [2] Ambiguous dependencies for type org.kie.kogito.process.Process<? extends org.kie.kogito.Model> and qualifiers [@Default] - java member: org.acme.travel.BookFlightTest#bookFlightProcess - declared on CLASS bean [types=[org.acme.travel.BookFlightTest, java.lang.Object], qualifiers=[@Default, @Any], target=org.acme.travel.BookFlightTest] - available beans:
When I'm running with intelij debugger, I got this error:
java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: Found 2 deployment problems: [1] Unsatisfied dependency for type org.kie.kogito.process.Process<? extends org.kie.kogito.Model> and qualifiers [@Default] - java member: org.acme.travel.BookFlightTest#bookFlightProcess - declared on CLASS bean [types=[org.acme.travel.BookFlightTest, java.lang.Object], qualifiers=[@Default, @Any], target=org.acme.travel.BookFlightTest] [2] Unsatisfied dependency for type org.kie.kogito.process.Process<? extends org.kie.kogito.Model> and qualifiers [@Default] - java member: org.acme.travel.BookHotelTest#bookHotelProcess - declared on CLASS bean [types=[org.acme.travel.BookHotelTest, java.lang.Object], qualifiers=[@Default, @Any], target=org.acme.travel.BookHotelTest]

Expected behavior

Expect that test are running successfully.

Actual behavior

No response

How to Reproduce?

In the root of the project: run this command:
./gradlew quarkusTest
Or just run tests.

Output of uname -a or ver

No response

Output of java -version

17

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

1.33.0

Build tool (ie. output of mvnw --version or gradlew --version)

gradlew 7.5.1

Additional information

I'm runnign with kogito 1.35.0 as well, and I got same error.
Quarkus version: 2.16.4
kogito-gradle-issue.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants