-
Notifications
You must be signed in to change notification settings - Fork 7
bobcat-aem-bdd set up issue (JUNIT related) #20
Description
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