Rename test so that surefire report of different modules do not collide

This commit is contained in:
Martin Pernollet 2022-02-21 18:55:30 +01:00
parent f70676cdca
commit 60c8234742
4 changed files with 21 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import org.jzy3d.os.WindowingToolkit;
import org.jzy3d.plot3d.rendering.canvas.CanvasAWT;
public class TestNativeDesktopPainter {
public class TestNativeDesktopPainter_AWT {
@Test
public void detectAWT() {
NativeDesktopPainter p = new NativeDesktopPainter();

View File

@ -0,0 +1,18 @@
package org.jzy3d.painters;
import static org.mockito.Mockito.mock;
import org.junit.Assert;
import org.junit.Test;
import org.jzy3d.os.WindowingToolkit;
import org.jzy3d.plot3d.rendering.canvas.OffscreenCanvas;
public class TestNativeDesktopPainter_Offscreen {
@Test
public void detectAWT() {
NativeDesktopPainter p = new NativeDesktopPainter();
p.setCanvas(mock(OffscreenCanvas.class));
Assert.assertEquals(WindowingToolkit.Offscreen, p.getWindowingToolkit());
}
}

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import org.jzy3d.os.WindowingToolkit;
import org.jzy3d.plot3d.rendering.canvas.CanvasSwing;
public class TestNativeDesktopPainter {
public class TestNativeDesktopPainter_Swing {
@Test
public void detectSwing() {
NativeDesktopPainter p = new NativeDesktopPainter();

View File

@ -6,7 +6,7 @@ import org.junit.Test;
import org.jzy3d.chart.factories.CanvasNewtSWT;
import org.jzy3d.os.WindowingToolkit;
public class TestNativeDesktopPainter {
public class TestNativeDesktopPainter_SWT {
@Test
public void detectSwt() {
NativeDesktopPainter p = new NativeDesktopPainter();