Skip to content

Scijava 36.0.0 breaks Mockito Wrapper tests #341

Open
@mdoube

Description

@mdoube

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)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions