Skip to content

Commit 03c7e55

Browse files
committed
Ensure we create a plot window object to the test
1 parent b1a283a commit 03c7e55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gdsc-core-ij/src/test/java/uk/ac/sussex/gdsc/core/ij/plugin/WindowOrganiserTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void testAdd() {
8686
@DisabledIfHeadless
8787
void testAdd2() {
8888
final WindowOrganiser wo = new WindowOrganiser();
89-
final PlotWindow pw = new Plot("dummy", "x", "y").show();
89+
final Plot plot = new Plot("dummy", "x", "y");
90+
final PlotWindow pw = new PlotWindow(plot.getImagePlus(), plot);
9091
wo.setIgnore(true);
9192
wo.add(pw);
9293
Assertions.assertTrue(wo.isEmpty());

0 commit comments

Comments
 (0)