FEST

fest allows system.exit calls that kill running multiple tests

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a3
  • Fix Version/s: FEST-Swing 1.2a4
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

Description

I have a GUI application that makes a call to System.exit, this action causes the tests to stop after one testcase. It would be great if FEST could intercept that call and prevent it from happening until all tests are complete

Refer to thread on google groups http://groups.google.com/group/easytesting/browse_thread/thread/e4b4b0d30d9bafb6 for possible solutions

Activity

Hide
Alex Ruiz added a comment -

I added the class org.fest.swing.security.NoExitSecurityManager and org.fest.swing.security.NoExitSecurityManagerInstaller. The following is an example on how to use them:

private NoExitSecurityManagerInstaller noExitSecurityManagerInstaller;

  @Before public void setUp() {
    noExitSecurityManagerInstaller = installNoExitSecurityManager();
    // more set up code here
  }

  @After public void tearDown() {
    noExitSecurityManagerInstaller.uninstall();
  }
Show
Alex Ruiz added a comment - I added the class org.fest.swing.security.NoExitSecurityManager and org.fest.swing.security.NoExitSecurityManagerInstaller. The following is an example on how to use them:
private NoExitSecurityManagerInstaller noExitSecurityManagerInstaller;

  @Before public void setUp() {
    noExitSecurityManagerInstaller = installNoExitSecurityManager();
    // more set up code here
  }

  @After public void tearDown() {
    noExitSecurityManagerInstaller.uninstall();
  }
Hide
Alex Ruiz added a comment -

Uploaded new snapshot to our Maven repo.

Show
Alex Ruiz added a comment - Uploaded new snapshot to our Maven repo.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: