com.atlassian.jira.webtests.util
Class TimeBomb

java.lang.Object
  extended by 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.
 
Method Summary
 boolean ignoreTest()
           
static boolean runAfter(String explosionDate)
           
 boolean runTest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

ignoreTest

public boolean ignoreTest()

runTest

public boolean runTest()

runAfter

public static boolean runAfter(String explosionDate)


Copyright © 2002-2013 Atlassian. All Rights Reserved.