BAEL-5421 by @opokharel

BAEL-5421 by @opokharel
This commit is contained in:
opokharel
2022-06-25 17:21:34 -06:00
parent 6664a4d790
commit ba8951a29f
2 changed files with 1 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import java.awt.*;
import javax.swing.*;
public class MySampleGUIAppn extends JFrame{
public class MySampleGUIAppn extends JFrame {
public MySampleGUIAppn() {
if (!GraphicsEnvironment.isHeadless()) {
setSize(300,300);
@@ -20,7 +20,6 @@ public class MySampleGUIAppn extends JFrame{
System.exit(0);
}
});
}
else {
System.exit(0);

View File

@@ -5,7 +5,6 @@ import java.io.IOException;
import org.junit.jupiter.api.Test;
class MySampleGUIAppnUnitTest {
@Test
void testMain() throws IOException {
System.setProperty("java.awt.headless", "true");