Relative Content

Tag Archive for mockitojunit5completable-future

JUnit Test method invocation with CompletableFuture.supplyAsync

in my class i have i class-field, which i’am verfing, that the method of this class-field is invoked three times. Now i moved the logic to “CompletableFuture.sypplyAsync” approach and it does not work anymore:
My Test fails, and it says, that it will be not invoked, what i’am expecting.

JUnit Test for CompletableFuture.supplyAsync

in my class i have i class-field, which i’am verfing, that the method of this class-field is invoked three times. Now i moved the logic to “CompletableFuture.sypplyAsync” approach and it does not work anymore:
My Test fails, and it says, that it will be not invoked, what i’am expecting.