Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

bobcat-aem-bdd set up issue (JUNIT related) #20

@DeChrish

Description

@DeChrish

Sample project is created using template ' bobcat-aem-bdd'.
We are getting compilation error for junit.

Sample Repo: https://github.com/DeChrish/sample-bobcat

Stack-trace:
~/g/sample-bobcat on master ◦ gradle cucumber 10:50:53

Task :compileJava FAILED
/Users/dechrish/github/sample-bobcat/src/main/java/sample/bobcat/sample/bobcat/steps/AuthorizationSteps.java:3: error: package org.junit does not exist
import static org.junit.Assert.assertTrue;
^
/Users/dechrish/github/sample-bobcat/src/main/java/sample/bobcat/sample/bobcat/steps/AuthorizationSteps.java:3: error: static import only from classes and interfaces
import static org.junit.Assert.assertTrue;
^
/Users/dechrish/github/sample-bobcat/src/main/java/sample/bobcat/sample/bobcat/steps/AuthorizationSteps.java:50: error: cannot find symbol
assertTrue(testPage.open().isDisplayed());
^
symbol: method assertTrue(boolean)
location: class AuthorizationSteps
Note: /Users/dechrish/github/sample-bobcat/src/main/java/sample/bobcat/sample/bobcat/CucumberInjectorSource.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions