|
|
@ -0,0 +1,26 @@ |
|
|
|
package Gui; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
class guiTest { |
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
static void setUp() { |
|
|
|
gui StartGui = new gui(); |
|
|
|
StartGui.StartMainMenu(); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void testCreateFrame() { |
|
|
|
//arrange |
|
|
|
int FrameWitdh = 800; |
|
|
|
int FrameHeight = 600; |
|
|
|
//act |
|
|
|
assertEquals(FrameWitdh, gui.jf.getWidth()); |
|
|
|
assertEquals(FrameHeight, gui.jf.getHeight()); |
|
|
|
} |
|
|
|
|
|
|
|
} |