package io.luna.game.model;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertThrows;

/**
 * Unit tests for {@link Position}.
 *
 * @author lare96 <http://github.com/lare96>
 */
final class AreaTest {

    @Test
    void northEastX() {
        assertThrows(IllegalArgumentException.class, () -> new Area(0, 0, -1, 0));
    }

    @Test
    void northEastY() {
        assertThrows(IllegalArgumentException.class, () -> new Area(0, 0, 0, -1));
    }
}
package io.luna.game.model;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertThrows;

/**
 * Unit tests for {@link AreaTest}.
 *
 * @author lare96 <http://github.com/lare96>
 */
final class AreaTest {

    @Test
    void northEastX() {
        assertThrows(IllegalArgumentException.class, () -> new Area(0, 0, -1, 0));
    }

    @Test
    void northEastY() {
        assertThrows(IllegalArgumentException.class, () -> new Area(0, 0, 0, -1));
    }
}
Fix documentation