package com.vitco.low.triangulate.tests; import com.vitco.low.triangulate.Grid2TriNaiveGreedy; import org.junit.Test; import org.poly2tri.triangulation.delaunay.DelaunayTriangle; import java.io.IOException; import java.util.ArrayList; /** * Test class for Grid2TriNaiveGreedy */ public class TestGrid2TriNaiveGreedy extends AbstractTriangulationTest { @Override ArrayList<DelaunayTriangle> triangulate(boolean[][] data) { return Grid2TriNaiveGreedy.triangulate(data); } // do many tests and check against different conditions @Test public void testTriangulation() throws IOException { super.testTriangulation(1, 10000, false, false); } // do a test case @Test public void testTriangulationCase() throws IOException { super.testTriangulationCase("test.png", "out.png", 20, false); } }