Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures in AnalyseSkeletonWrapperTest after update to scijava 29 and 30 #273

Open
mdoube opened this issue Oct 30, 2020 · 0 comments
Assignees

Comments

@mdoube
Copy link
Member

mdoube commented Oct 30, 2020

Describe the bug
Test fails with An error occurred while opening the image instead of Image format is not recognized

Expected behavior
Test passes

Environment
commit 4bc1bd5
scijava 29.2.1

Additional context
The failing test

	@Test
	public void testBadFormatIntensityImageCancelsPlugin() throws Exception {
		// SETUP
		final ImagePlus imagePlus = IJ.createImage("test", 3, 3, 3, 8);
		final File exceptionFile = mock(File.class);
		when(exceptionFile.getAbsolutePath()).thenReturn("file.foo");
		when(MOCK_UI.chooseFile(any(File.class), anyString())).thenReturn(
			exceptionFile);

		// EXECUTE
		final CommandModule module = command().run(
			AnalyseSkeletonWrapper.class, true, "inputImage", imagePlus,
			"pruneCycleMethod", "Lowest intensity voxel").get();

		// VERIFY
		assertTrue("Plugin should have cancelled", module.isCanceled());
		assertEquals("Cancel reason is incorrect", "Image format is not recognized",
			module.getCancelReason());
	}

This appears in the console:

[ERROR] Cannot create plugin: class='org.scijava.io.http.HTTPHandle', priority=0.0, enabled=true, pluginType=DataHandle
@mdoube mdoube changed the title Test failure in AnalyseSkeletonWrapperTest after update to scijava 29 Test failures in AnalyseSkeletonWrapperTest after update to scijava 29 and 30 Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants