com.atlassian.jira.webtests.util
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 Summary |
TimeBomb(String date)
Creates a TimeBomb with teh given explosion date. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ignoreTest
public boolean ignoreTest()
runTest
public boolean runTest()
runAfter
public static boolean runAfter(String explosionDate)
Copyright © 2002-2012 Atlassian. All Rights Reserved.