public static enum MockDirectoryWrapper.Throttling extends Enum<MockDirectoryWrapper.Throttling>
#setThrottling(Throttling)
 WARNING: can make tests very slow.
| Enum Constant and Description | 
|---|
| ALWAYSalways emulate a slow hard disk. | 
| NEVERnever throttle output | 
| SOMETIMESsometimes (0.5% of the time) emulate a slow hard disk. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MockDirectoryWrapper.Throttling | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static MockDirectoryWrapper.Throttling[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final MockDirectoryWrapper.Throttling ALWAYS
public static final MockDirectoryWrapper.Throttling SOMETIMES
public static final MockDirectoryWrapper.Throttling NEVER
public static MockDirectoryWrapper.Throttling[] values()
for (MockDirectoryWrapper.Throttling c : MockDirectoryWrapper.Throttling.values()) System.out.println(c);
public static MockDirectoryWrapper.Throttling valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.