We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f00baba commit aac2cd2Copy full SHA for aac2cd2
1 file changed
core-java-modules/core-java-jar/src/test/java/com/baeldung/jar/MySampleGUIAppnUnitTest.java
@@ -1,14 +1,16 @@
1
package com.baeldung.jar;
2
3
+import java.io.IOException;
4
+
5
import org.junit.jupiter.api.Test;
6
-class MySampleGUIAppnUnitTest throws IOException {
7
+class MySampleGUIAppnUnitTest {
8
9
@Test
10
void testMain() throws IOException {
11
MySampleGUIAppn instance = new MySampleGUIAppn();
12
String [] args = null;
- System.exit(DO_NOTHING_ON_CLOSE);
- main(args);
13
+ System.exit(0);
14
+ MySampleGUIAppn.main(args);
15
}
16
0 commit comments