Skip to content

Commit 76f89a5

Browse files
author
MartinTCode
committed
refactor: Replace TestMainApp with MainApp in StartViewGuestControllerTest and adjust sleep time
1 parent eac5555 commit 76f89a5

File tree

2 files changed

+4
-43
lines changed

2 files changed

+4
-43
lines changed

src/main/java/com/javafullstacklibrary/TestMainApp.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/test/java/com/javafullstacklibrary/frontend/StartViewGuestControllerTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import static com.javafullstacklibrary.frontend.MenuEntryTestData.MENU_ENTRIES_GUESTVIEWS;
3333
import static com.javafullstacklibrary.frontend.MenuEntryTestData.MENU_ENTRIES_BORROWERVIEWS;
3434

35-
import com.javafullstacklibrary.TestMainApp;
35+
import com.javafullstacklibrary.MainApp;
3636
// import start controller class
3737
//import com.javafullstacklibrary.frontend.guestControllers.StartViewGuestController;
3838

@@ -52,7 +52,7 @@ public class StartViewGuestControllerTest extends ApplicationTest {
5252

5353
private static final Logger logger = LoggerUtil.getFileLogger(StartViewGuestControllerTest.class, "StartViewGuestControllerTest.log");
5454

55-
private static final int SLEEP_TIME = 100; // milliseconds
55+
private static final int SLEEP_TIME = 10; // milliseconds
5656

5757
@Test
5858
@Order(1)
@@ -82,9 +82,8 @@ void testBorrowerViewMenuButtons() {
8282
@Override
8383
public void start(Stage primaryStage) throws Exception {
8484
try {
85-
//Use TestMainApp instead of manual FXML loading
86-
TestMainApp testApp = new TestMainApp();
87-
testApp.start(primaryStage);
85+
MainApp mainApp = new MainApp();
86+
mainApp.start(primaryStage);
8887
} catch (Exception e) {
8988
e.printStackTrace();
9089
}

0 commit comments

Comments
 (0)