Skip to content

Commit

Permalink
fix(test): compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Aug 24, 2023
1 parent 8af2294 commit 53e7262
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,21 @@
import org.janelia.saalfeldlab.util.grids.LabelBlockLookupAllBlocks;
import org.janelia.saalfeldlab.util.grids.LabelBlockLookupNoBlocks;
import org.jetbrains.annotations.NotNull;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.testfx.api.FxRobot;
import org.testfx.api.FxToolkit;
import org.testfx.framework.junit.ApplicationTest;

import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.TimeoutException;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Supplier;


public class PainteraBaseViewTest extends FxRobot {

// @BeforeClass
// @BeforeClass
public static void setup() throws Exception {

System.setProperty("headless.geometry", "1600x1200-32");
Expand All @@ -47,14 +46,17 @@ public static void setup() throws Exception {
ApplicationTest.launch(Paintera.class, "--log-level=ERROR");
}

// @AfterClass
public static void cleanup() throws InterruptedException {
// @AfterClass
public static void cleanup() throws InterruptedException, TimeoutException {
InvokeOnJavaFXApplicationThread.invokeAndWait(() -> {
Paintera.getApplication().resetApplication();
Paintera.getPaintera().getBaseView().stop();
Paintera.getPaintera().getProjectDirectory().close();
});
FxToolkit.cleanupApplication(Paintera.getApplication());
}

// @Test

// @Test
public void testAddSingleScaleLabelSource() {
final RandomAccessibleInterval<UnsignedLongType> labels = ArrayImgs.unsignedLongs(10, 15, 20);
final PainteraBaseView viewer = Paintera.getPaintera().getBaseView();
Expand All @@ -66,7 +68,7 @@ public void testAddSingleScaleLabelSource() {
"singleScaleLabelSource", new LabelBlockLookupNoBlocks());
}

// @Test
// @Test
public void testAddSingleScaleConnectomicsRawSource() {
final Random random = new Random();
final RandomAccessibleInterval<UnsignedLongType> rawData =
Expand All @@ -87,7 +89,7 @@ public void testAddSingleScaleConnectomicsRawSource() {
);
}

// @Test
// @Test
public void testAddMultiScaleConnectomicsRawSource() {
var random = new Random();
final double[] center2D = new double[]{500, 500};
Expand Down Expand Up @@ -132,7 +134,7 @@ private static void fillCylinderChunk(double[] center2D, Double scale, LoopBuild
});
}

// @Test
// @Test
public void testAddMultiScaleConnectomicsLabelSource() {
final Random random = new Random();

Expand Down

0 comments on commit 53e7262

Please sign in to comment.