public class ClassReplicaCreator extends Object
| Constructor | Description |
|---|---|
ClassReplicaCreator() |
| Modifier and Type | Method | Description |
|---|---|---|
Class<?> |
createClassReplica(Class<?> clazz) |
|
<T> Class<T> |
createInstanceReplica(T delegator) |
Create a class that is a replica of type
T. |
public <T> Class<T> createInstanceReplica(T delegator)
T. To allow for
partial mocking all calls to non-mocked methods will be delegated to the
delegator.T - The type of the replica class to be created.delegator - The delegator object that will be invoked to allow for partial
mocking.Copyright © 2007–2019. All rights reserved.