|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powermock.core.DefaultFieldValueGenerator
public class DefaultFieldValueGenerator
Fills the fields with default not-null values. If a field type is an interface a proxy returning default values for each method will be created. If it's an abstract class a new concrete implementation of that type will created and instantiated at run-time.
There are two scenarios where a field-type cannot possibly be assigned.
null is assigned.null is assigned.
| Constructor Summary | |
|---|---|
DefaultFieldValueGenerator()
|
|
| Method Summary | ||
|---|---|---|
static
|
fillWithDefaultValues(T object)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFieldValueGenerator()
| Method Detail |
|---|
public static <T> T fillWithDefaultValues(T object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||