package io.luna.game.model;

import io.luna.game.model.mob.Player;
import org.junit.Test;

/**
 * A test that ensures that functions within {@link Position} are functioning correctly.
 *
 * @author lare96 <http://github.com/lare96>
 */
public final class AreaTest {

    /**
     * Ensures the north east {@code x} coordinate is larger than the south west {@code x} coordinate.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testNorthEastX() {
        newArea(0, 0, -1, 0);
    }

    /**
     * Ensures the north east {@code y} coordinate is larger than the south west {@code y} coordinate.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testNorthEastY() {
        newArea(0, 0, 0, -1);
    }

    /**
     * Constructs a new {@link Area} for this test.
     */
    private void newArea(int swX, int swY, int neX, int neY) {
        new Area(swX, swY, neX, neY) {
            @Override
            public void enter(Player player) {

            }

            @Override
            public void exit(Player player) {

            }
        };
    }
}
@@ -33,46 +33,44 @@
 ort 
-io.luna.game.model.mob.Player;
+org.junit.jupiter.api.Test;%0A
 %0Aimport 
 org.
@@ -57,32 +57,39 @@
 i.Test;%0A%0Aimport 
+static 
 org.junit.Test;%0A
@@ -86,106 +86,84 @@
 nit.
-Test;%0A%0A/**%0A * A test that ensures that functions within %7B@link Position%7D are functioning correctly
+jupiter.api.Assertions.assertThrows;%0A%0A/**%0A * Unit tests for %7B@link Position%7D
 .%0A *
@@ -212,23 +212,16 @@
 96%3E%0A */%0A
-public 
 final cl
@@ -244,222 +244,101 @@
     
-/**%0A     * Ensures the
+@Test%0A    void
  north
- east %7B@code x%7D coordinate is larger than the south west %7B@code x%7D coordinate.%0A     */%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testNorthEastX() %7B%0A       
+EastX() %7B%0A        assertThrows(IllegalArgumentException.class, () -%3E
  new
+ 
 Area
@@ -350,16 +350,17 @@
 , -1, 0)
+)
 ;%0A    %7D%0A
@@ -368,222 +368,101 @@
     
-/**%0A     * Ensures the
+@Test%0A    void
  north
- east %7B@code y%7D coordinate is larger than the south west %7B@code y%7D coordinate.%0A     */%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testNorthEastY() %7B%0A       
+EastY() %7B%0A        assertThrows(IllegalArgumentException.class, () -%3E
  new
+ 
 Area
@@ -478,364 +478,9 @@
  -1)
-;%0A    %7D%0A%0A    /**%0A     * Constructs a new %7B@link Area%7D for this test.%0A     */%0A    private void newArea(int swX, int swY, int neX, int neY) %7B%0A        new Area(swX, swY, neX, neY) %7B%0A            @Override%0A            public void enter(Player player) %7B%0A%0A            %7D%0A%0A            @Override%0A            public void exit(Player player) %7B%0A%0A            %7D%0A        %7D
+)
 ;%0A  

Fix AreaTest to conform to JUnit 5