Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
izzat5233 committed May 14, 2023
1 parent a0a2e20 commit c768e33
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import stu.najah.se.ui.Prompter;
import stu.najah.se.ui.SceneManager;

import java.util.concurrent.CountDownLatch;

public class Configuration extends ApplicationTestBase {

static {
Expand All @@ -30,21 +28,6 @@ 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
}


Expand Down

0 comments on commit c768e33

Please sign in to comment.