Skip to content

Commit

Permalink
add timeout for SwingNodeJDialogTest
Browse files Browse the repository at this point in the history
  • Loading branch information
azvegint committed Jun 26, 2024
1 parent d83d454 commit e267212
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

public class SwingNodeJDialogTest extends SwingNodeBase {

@Test
@Test(timeout = 15000)
public void testJDialogAbove() throws InterruptedException, InvocationTargetException {
myApp.createStageAndDialog();
myApp.showDialog();
Expand All @@ -44,7 +44,7 @@ public void testJDialogAbove() throws InterruptedException, InvocationTargetExce
myApp.closeStageAndDialog();
}

@Test
@Test(timeout = 15000)
public void testNodeRemovalAfterShow() throws InterruptedException, InvocationTargetException {
myApp.createStageAndDialog();
myApp.showDialog();
Expand All @@ -58,7 +58,7 @@ public void testNodeRemovalAfterShow() throws InterruptedException, InvocationTa
myApp.attachSwingNode();
}

@Test
@Test(timeout = 15000)
public void testNodeRemovalBeforeShow() throws InterruptedException, InvocationTargetException {
myApp.createStageAndDialog();
myApp.detachSwingNode();
Expand All @@ -70,7 +70,7 @@ public void testNodeRemovalBeforeShow() throws InterruptedException, InvocationT
myApp.attachSwingNode();
}

@Test
@Test(timeout = 15000)
public void testStageCloseAfterShow() throws InvocationTargetException, InterruptedException {
myApp.createStageAndDialog();
myApp.showDialog();
Expand All @@ -79,7 +79,7 @@ public void testStageCloseAfterShow() throws InvocationTargetException, Interrup
myApp.disposeDialog();
}

@Test
@Test(timeout = 15000)
public void testStageCloseBeforeShow() throws InvocationTargetException, InterruptedException {
myApp.createStageAndDialog();
myApp.closeStage();
Expand All @@ -89,7 +89,7 @@ public void testStageCloseBeforeShow() throws InvocationTargetException, Interru
}


@Test
@Test(timeout = 15000)
public void testNodeRemovalBeforeShowHoldEDT() throws InterruptedException, InvocationTargetException {
myApp.createAndShowStage();
CountDownLatch latch = new CountDownLatch(1);
Expand All @@ -106,7 +106,7 @@ public void testNodeRemovalBeforeShowHoldEDT() throws InterruptedException, Invo
myApp.attachSwingNode();
}

@Test
@Test(timeout = 15000)
public void testStageCloseBeforeShowHoldEDT() throws InvocationTargetException, InterruptedException {
myApp.createAndShowStage();
CountDownLatch latch = new CountDownLatch(1);
Expand Down

0 comments on commit e267212

Please sign in to comment.