BoneJ2 icon indicating copy to clipboard operation
BoneJ2 copied to clipboard

Scijava 36.0.0 breaks Mockito Wrapper tests

Open mdoube opened this issue 1 year ago • 12 comments

Describe the bug Updating pom.xml to use scijava 36.0.0 leads to the Mockito wrapper tests failing when running mvn test -P allTests

Expected behavior All the tests pass

Additional context A large number of these errors are produced

[ERROR]   ThicknessWrapperTest.test2DImageCancelsPlugin:69 
Wanted but not invoked:
userInterface.dialogPrompt(
    <any string>,
    <any string>,
    <any>,
    <any>
);
-> at org.bonej.wrapperPlugins.CommonWrapperTests.test2DImagePlusCancelsPlugin(CommonWrapperTests.java:222)

However, there was exactly 1 interaction with this mock:
userInterface.isVisible();
-> at org.scijava.ui.DefaultUIService.getVisibleUI(DefaultUIService.java:550)

mdoube avatar Oct 06 '23 03:10 mdoube