@Test public void testMove() { assertEquals("At the start the x: 2", 2, element.getX()); assertEquals("At the start the y: 3", 3, element.getY()); element.move(4, 5); assertEquals("After move method calling the x became: 5", 5, element.getX()); assertEquals("After move method calling the y became: 4", 4, element.getY()); }
@Test public void testOneStepAlien() { assertEquals("The v must be: 3", 3, element.getY()); assertEquals("The h must be: 2", 2, element.getX()); }