Error: not abstract and does not override abstract method test(net.serenitybdd.core.pages

1,162 views
Skip to first unread message

80Vikram

unread,
Sep 21, 2017, 5:01:46 AM9/21/17
to Serenity BDD Users Group
Hi All,

When I'm trying to run project 

https://github.com/ricardorlg/serenityappiumbug . > JunitAcceptanceTestSuite.java > one_appium_scenario

getting below compilation error

java: <anonymous com.serenity.appium.poc.MobilePageObject$1> is not abstract and does not override abstract
method test(net.serenitybdd.core.pages.PageObject) in java.util.function.Predicate

at super(driver, new Predicate<PageObject>() {   [ MobilePageObject.java ]


Any idea what may be going wrong here ?

Thanks,
Vikram

John Smart

unread,
Sep 21, 2017, 5:07:20 AM9/21/17
to 80Vikram, Serenity BDD Users Group
It looks like a Java 7/Java 8 incompatibility error.

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________

80Vikram

unread,
Sep 21, 2017, 5:19:20 AM9/21/17
to Serenity BDD Users Group
Hi John,

I've setting in IDEA as per screen shot attached 

But error has not gone, any idea how to fix this ?

Thanks,
Vikram


On Thursday, September 21, 2017 at 11:07:20 AM UTC+2, John Ferguson Smart wrote:
It looks like a Java 7/Java 8 incompatibility error.
On 21 September 2017 at 10:01, 80Vikram <vikra...@gmail.com> wrote:
Hi All,

When I'm trying to run project 

https://github.com/ricardorlg/serenityappiumbug . > JunitAcceptanceTestSuite.java > one_appium_scenario

getting below compilation error

java: <anonymous com.serenity.appium.poc.MobilePageObject$1> is not abstract and does not override abstract
method test(net.serenitybdd.core.pages.PageObject) in java.util.function.Predicate

at super(driver, new Predicate<PageObject>() {   [ MobilePageObject.java ]


Any idea what may be going wrong here ?

Thanks,
Vikram

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

John Smart

unread,
Sep 21, 2017, 5:22:48 AM9/21/17
to 80Vikram, Serenity BDD Users Group
It looks like com.serenity.appium.poc.MobilePageObject is referring to an older version of the Serenity library (pre Serenity 1.5).

To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

80Vikram

unread,
Sep 21, 2017, 5:26:00 AM9/21/17
to Serenity BDD Users Group
I got it fixed; by changing values at 3 places in IDEA 

- Project Settings > Project
- Project Settings > Module
- Java Compiler version

Thanks for quick help
Reply all
Reply to author
Forward
0 new messages