Class TimeBomb

java.lang.Object
com.atlassian.jira.webtests.util.TimeBomb

public class TimeBomb extends Object
Allows you to ignore a failing test for a limited amount of time. After the "explosion date", the test will be run again.

Usage:

 // TODO: fix the test and remove the Time Bomb
 if (new TimeBomb("31/3/2010").ignoreTest())
 {
     log("Ignoring MyTest.testStuff() temporarily.");
     return;
 }
 
Since:
v4.3
  • Constructor Details

    • TimeBomb

      public TimeBomb(String date)
      Creates a TimeBomb with teh given explosion date.
      Parameters:
      date - Date to stop ignoring test in format dd/MM/yyyy
  • Method Details

    • ignoreTest

      public boolean ignoreTest()
    • runTest

      public boolean runTest()
    • runAfter

      public static boolean runAfter(String explosionDate)