/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/UnitTests/JUnit5TestClass.java to edit this template */ package metier; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * * @author emile.lalorcey */ public class PositionTest { public PositionTest() { } @BeforeEach public void setUp() { } /** * Test of getPosX method, of class Position. */ @Test public void testGetPosX() { System.out.println("getPosX"); Position instance = new Position(); int expResult = 0; int result = instance.getPosX(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of getPosY method, of class Position. */ @Test public void testGetPosY() { System.out.println("getPosY"); Position instance = new Position(); int expResult = 0; int result = instance.getPosY(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setX method, of class Position. */ @Test public void testSetX() { System.out.println("setX"); int x = 0; Position instance = new Position(); instance.setX(x); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of setY method, of class Position. */ @Test public void testSetY() { System.out.println("setY"); int y = 0; Position instance = new Position(); instance.setY(y); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } /** * Test of toString method, of class Position. */ @Test public void testToString() { System.out.println("toString"); Position instance = new Position(); String expResult = ""; String result = instance.toString(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); } }