It test per plateform

This commit is contained in:
martin 2022-09-15 15:34:01 +02:00
parent 5e805bd021
commit 365b560a6b
8 changed files with 8 additions and 1 deletions

View File

@ -55,6 +55,7 @@
<groupId>${project.groupId}</groupId>
<artifactId>jzy3d-tester-native</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<!-- Reporting -->

View File

@ -46,6 +46,7 @@
<groupId>${project.groupId}</groupId>
<artifactId>jzy3d-tester-native</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -23,6 +23,9 @@ import com.jogamp.opengl.util.texture.TextureData;
import com.jogamp.opengl.util.texture.TextureIO;
public class NativeChartTester extends ChartTester {
public NativeChartTester() {
setTestCaseInputFolder(MAVEN_TEST_RESOURCES_PATH + new NativePlatform().getLabel() + "/");
}
protected BufferedImage getBufferedImage(Chart chart) throws IOException {
if (classicScreenshotGen) {

View File

@ -48,13 +48,14 @@ public class ChartTester {
protected String testCaseOutputFolder = MAVEN_TARGET_PATH;
protected String testCaseInputFolder = MAVEN_TEST_RESOURCES_PATH;
private static final String MAVEN_TEST_RESOURCES_PATH = "src/test/resources/";
public static final String MAVEN_TEST_RESOURCES_PATH = "src/test/resources/";
public static final String MAVEN_TARGET_PATH = "target/";
protected Dimension colorbarDimension = new Dimension(200, 600);
protected int WIDTH = 800;
protected int HEIGHT = 600;
// ----------------------------------------------------------------------------------- //
//

View File

@ -87,6 +87,7 @@
<groupId>org.jzy3d</groupId>
<artifactId>jzy3d-tester-native</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB