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()
No arg constructor.
ForkMode(String value)
Constructor using a value.

Method Summary

String[]
getValues()
.

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

containsValue, getIndex, getInstance, 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()
No arg constructor.

ForkMode

public ForkMode(String value)
Constructor using a value.
Parameters:
value - the value to use - once, perTest or perBatch.

Method Details

getValues

public String[] getValues()
.
Overrides:
getValues in interface EnumeratedAttribute