org.apache.tools.ant.taskdefs.optional.junit

Class JUnitTask.ForkMode

Enclosing Class:
JUnitTask

public static final class JUnitTask.ForkMode
extends EnumeratedAttribute

These are the different forking options
Since:
1.6.2

Field Summary

static String
ONCE
fork once only
static String
PER_BATCH
fork once per batch of tests
static String
PER_TEST
fork once per test class

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Constructor Summary

ForkMode()
bean constructor
ForkMode(String value)

Method Summary

String[]
getValues()
This is the only method a subclass needs to implement.

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getValue, getValues, indexOfValue, setValue, toString

Field Details

ONCE

public static final String ONCE
fork once only

PER_BATCH

public static final String PER_BATCH
fork once per batch of tests

PER_TEST

public static final String PER_TEST
fork once per test class

Constructor Details

ForkMode

public ForkMode()
bean constructor

ForkMode

public ForkMode(String value)

Method Details

getValues

public String[] getValues()
This is the only method a subclass needs to implement.
Overrides:
getValues in interface EnumeratedAttribute
Returns:
an array holding all possible values of the enumeration. The order of elements must be fixed so that indexOfValue(String) always return the same index for the same value.

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.