From 206753a5389f4df1f6b7d2292378cffe6215cfff Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Fri, 3 Jun 2022 08:26:50 +0200 Subject: [PATCH] WIP Trivial tests --- .../GrassGdalFormatFactoryTest.java | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/test/java/de/terrestris/hermosa/grass_gdal/GrassGdalFormatFactoryTest.java diff --git a/src/test/java/de/terrestris/hermosa/grass_gdal/GrassGdalFormatFactoryTest.java b/src/test/java/de/terrestris/hermosa/grass_gdal/GrassGdalFormatFactoryTest.java new file mode 100644 index 0000000..1d9d1b9 --- /dev/null +++ b/src/test/java/de/terrestris/hermosa/grass_gdal/GrassGdalFormatFactoryTest.java @@ -0,0 +1,31 @@ +package de.terrestris.hermosa.grass_gdal; + +import org.geotools.coverage.grid.io.AbstractGridFormat; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class GrassGdalFormatFactoryTest { + + @Test + void createFormat() { + assertEquals(1,1); + // Needed grass und gdal-grass + // -Djava.library.path=/pfad/zu/grass (so von GRASS) + // https://github.com/terrestris/docker-geoserver/blob/master/Dockerfile + // GrassGdalFormatFactory factory = new GrassGdalFormatFactory(); + // try { + // GrassGdalFormat format = (GrassGdalFormat) factory.createFormat(); + // String formatName = format.getName(); + // assertEquals("GRASS GDAL", formatName); + // } catch (ClassCastException cce) { + // fail(); + // } + } + + @Test + void isAvailable() { + + assertEquals(1,1); + } +}