public abstract class Stub extends Object
| Constructor and Description |
|---|
Stub() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createNiceStub(Class<T> aClass,
Object... parameters)
Instantiates a stub from an abstract class or interface, generating implementations for any abstract methods.
|
static <T> T |
createStrictStub(Class<T> aClass,
Object... parameters)
Instantiates a stub from an abstract class.
|
static <T> T |
createStub(Class<T> aClass,
Object... parameters)
Instantiates a stub from an abstract class or interface, generating implementations for any abstract methods.
|
public static <T> T createStub(Class<T> aClass, Object... parameters)
T - the abstract classaClass - the class from which a stub should be generated.parameters - any parameters needed for the constructor. If the class is an inner class, the first parameter
must be the outer class instance.public static <T> T createNiceStub(Class<T> aClass, Object... parameters)
T - the abstract classaClass - the class from which a stub should be generated.parameters - any parameters needed for the constructor. If the class is an inner class, the first parameter
must be the outer class instance.public static <T> T createStrictStub(Class<T> aClass, Object... parameters)
T - the abstract classaClass - the class from which a stub should be generated.parameters - any parameters needed for the constructor. If the class is an inner class, the first parameter
must be the outer class instance.Copyright © 2024. All rights reserved.