Adds test for one of the constructors.
@@ -7,6 +7,7 @@ import org.junit.Before;
import org.junit.Test;
import java.awt.*;
+import java.awt.image.BufferedImage;
import java.util.Optional;
public class ScreenTest {
@@ -48,6 +49,11 @@ public class ScreenTest {
new Screen(4, 6, 9, -1);
}
+ @Test(expected=UnsupportedOperationException.class)
+ public void testDraw_screen() {
+ screen.draw(screen);
+ }
+
@Test
public void testClear_oneParam() {
screen.clear('?');
