Riduidel / aadarchi

A maven archetype to generate easily projects allowing architecture description using a mix of C4, agile architecture, Asciidoc and PlantUML
https://riduidel.github.io/aadarchi/
Apache License 2.0
39 stars 12 forks source link

cucumber test cases aren't working after upgrading to java 17 and spring boot 3.1.5 #406

Closed harshahid closed 4 months ago

harshahid commented 7 months ago

I'm getting below error with JAVA 17 and Spring Boot 3.1.5

io.cucumber.core.exception.CucumberException: Could not invoke hook defined at 'com.abc.pqr.acmt.location.cucumber.example.RemoveAllianceSteps.init()'. It appears there was a problem with the hook definition.

Below are the cucumber dependencies which i'm using. Kindly please help/suggest. I have spent lot of time but could not able find solution running cucumber with java 17 version.

     `<dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>7.3.4</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>7.3.4</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-spring</artifactId>
        <version>7.3.4</version>
        <scope>test</scope>
    </dependency>`
Riduidel commented 7 months ago

As far as I know (and I know well, as principal maintainer of Aadarchi), there is no link between aadarchi and cucumber.

How do you use aadarchi your project ?

When is aadarchi invoking cucumber ?

Le 17/11/2023 à 04:02, HARSH KUMAR a écrit :

I'm getting below error with JAVA 17 and Spring Boot 3.1.5

|io.cucumber.core.exception.CucumberException: Could not invoke hook defined at 'com.abc.pqr.acmt.location.cucumber.example.RemoveAllianceSteps.init()'. It appears there was a problem with the hook definition.|

Below are the cucumber dependencies which i'm using. Kindly please help/suggest. I have spent lot of time but could not able find solution running cucumber with java 17 version.

|` io.cucumber

cucumber-java 7.3.4 test io.cucumber cucumber-junit 7.3.4 test io.cucumber cucumber-spring 7.3.4 test ` | — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
harshahid commented 7 months ago

Hi @Riduidel Thank you for replying. I did not understand "aadarchi", let me browse and understand about it.

My question, Does cucumber compatible with Java 17 ?

Thanks