Skip to content
Snippets Groups Projects
Commit 552cba43 authored by gbrown31's avatar gbrown31
Browse files

check for correct throws

parent a4fb7d85
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,6 @@ package dotsandboxes; ...@@ -2,8 +2,6 @@ package dotsandboxes;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
import dotsandboxes.DotsAndBoxesGrid;
import dotsandboxes.DotsAndBoxesUI;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.junit.jupiter.api.*; import org.junit.jupiter.api.*;
...@@ -108,14 +106,14 @@ public class DotsAndBoxesGridTest { ...@@ -108,14 +106,14 @@ public class DotsAndBoxesGridTest {
*/ */
assertThrows( assertThrows(
RuntimeException.class, IndexOutOfBoundsException.class,
() -> { () -> {
case1.drawHorizontal(-1, 0, 0); case1.drawHorizontal(-1, 0, 0);
} }
); );
assertThrows( assertThrows(
RuntimeException.class, IndexOutOfBoundsException.class,
() -> { () -> {
case1.drawHorizontal(width, 0, 0); case1.drawHorizontal(width, 0, 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment