public class ClassReplicaCreator extends Object
Constructor and Description |
---|
ClassReplicaCreator() |
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
createClassReplica(Class<T> 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 © 2019. All rights reserved.