Package | Description |
---|---|
org.powermock.reflect | |
org.powermock.reflect.internal | |
org.powermock.reflect.matching |
Modifier and Type | Method and Description |
---|---|
static void |
Whitebox.setInternalStateFromContext(java.lang.Object instance,
java.lang.Class<?> context,
FieldMatchingStrategy strategy)
Set the values of multiple static fields defined in a context using
reflection and using an explicit
FieldMatchingStrategy . |
static void |
Whitebox.setInternalStateFromContext(java.lang.Object instance,
java.lang.Object context,
FieldMatchingStrategy strategy)
Set the values of multiple instance fields defined in a context using
reflection and using an explicit
FieldMatchingStrategy . |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
WhiteboxImpl.copyState(java.lang.Object object,
java.lang.Object context,
FieldMatchingStrategy strategy)
Copy state.
|
static void |
WhiteboxImpl.setInternalStateFromContext(java.lang.Object object,
java.lang.Object context,
FieldMatchingStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
static FieldMatchingStrategy |
FieldMatchingStrategy.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FieldMatchingStrategy[] |
FieldMatchingStrategy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|