jeudi 26 mars 2020

Awaitility predicate not found

I'm trying to run my test that uses awaitility on my android app, but it can't run due the following line:

await().atMost(200, MILLISECONDS).until(() -> testVehicle.isFuelChecked());

It doesn't show any error before runing the test, but when I run it, it shows this error before running:

enter image description here

error: cannot access Predicate
await().atMost(200, MILLISECONDS).until(testVehicle::isFuelChecked);
                                 ^

I'm using java 1.8 which has predicate, what's wrong?

Aucun commentaire:

Enregistrer un commentaire