diff --git a/core-java-modules/core-java-jar/src/test/java/com/baeldung/jar/MySampleGUIAppnUnitTest.java b/core-java-modules/core-java-jar/src/test/java/com/baeldung/jar/MySampleGUIAppnUnitTest.java index af5643cf40..7084c1468d 100644 --- a/core-java-modules/core-java-jar/src/test/java/com/baeldung/jar/MySampleGUIAppnUnitTest.java +++ b/core-java-modules/core-java-jar/src/test/java/com/baeldung/jar/MySampleGUIAppnUnitTest.java @@ -5,7 +5,7 @@ import org.junit.jupiter.api.Test; class MySampleGUIAppnUnitTest extends MySampleGUIAppn { @Test - void testMain() { + void testMain() throws IOException { MySampleGUIAppn instance = new MySampleGUIAppn(); String [] args = null; System.exit(DO_NOTHING_ON_CLOSE);