Skip to content

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakhammash committed May 13, 2023
1 parent 17dc380 commit f43f1f3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ public interface UserSessionListener {
* after a logout.
*/
void logout();

void addSomeEventListener(Object o);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,24 @@ public static void launch() throws Exception {
ServiceManager.initializeAdminService();
ServiceManager.initializeEntityServices(Prompter.getInstance(), Prompter.getInstance());
ApplicationTest.launch(SceneManager.class);
//Thread.sleep(5000);
CountDownLatch latch = new CountDownLatch(1);
ServiceManager.initializeAdminService();
ServiceManager.initializeEntityServices(Prompter.getInstance(), Prompter.getInstance());

// Register a listener or observer to trigger the countDown() method when the desired event occurs
//SceneManager.getInstance().addSomeEventListener(() -> latch.countDown());

// Launch the application
ApplicationTest.launch(SceneManager.class);

// Wait until the countDown() method is called or a timeout occurs
latch.await();

// Rest of the code after the desired event has occurred
}


@Before
public void selectStage() {
targetWindow(SceneManager.getInstance().getStage());
Expand Down

0 comments on commit f43f1f3

Please sign in to comment.