org.netbeans.modules.nbjunit/1 1.75

org.netbeans.junit
Annotation Type RandomlyFails


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Inherited
public @interface RandomlyFails

Indicates that this test can fail randomly.

When used on a method in a class extending NbTestCase, the implicit suite will exclude this test in case the system property ignore.random.failures is set to true. When used on a class passed to NbTestSuite.NbTestSuite(Class) or NbTestSuite.addTestSuite(Class), the suite will be empty if the system property is set; the same if it is used on a class extending NbTestCase.

Test runs which must be reliable should define the system property. (E.g. for NetBeans modules: ant -Dtest-unit-sys-prop.ignore.random.failures=true test) Developers running tests interactively should not.

Since:
1.51


org.netbeans.modules.nbjunit/1 1.75

Built on May 24 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.