3435363738394041424344
@Test public void moveX() { Entity entity = new Entity(0, 0); entity.moveX(7); assertEquals(new Point(7, 0), entity.position); entity.moveX(-11); assertEquals(new Point(-4, 0), entity.position); }
3738394041424344454647
Entity entity = new Entity(0, 0); entity.moveX(7); assertEquals(new Point(7, 0), entity.position); entity.moveX(-11); assertEquals(new Point(-4, 0), entity.position); } @Test public void moveY() {