Package | Description |
---|---|
com.meterware.simplestub |
Modifier and Type | Field and Description |
---|---|
static Memento |
Memento.NULL |
Modifier and Type | Method and Description |
---|---|
static Memento |
StaticStubSupport.install(Class<?> containingClass,
String fieldName,
Object newValue)
This method assigns the specified value to the named field in the specified class.
|
static Memento |
ThreadContextClassLoaderSupport.install(ClassLoader classLoader)
Installs a classloader as the current thread context classloader, returning a memento which can be used to
undo the installation.
|
static Memento |
SystemPropertySupport.install(String propertyName,
String newValue)
Sets a property to the specified value, returning a memento to restore it.
|
static Memento |
ThreadContextClassLoaderSupport.preserve()
Returns a memento to restore the current thread context classloader.
|
static Memento |
StaticStubSupport.preserve(Class<?> containingClass,
String fieldName)
This method returns a
Memento object
which can be used to revert the specified field to its current value. |
static Memento |
SystemPropertySupport.preserve(String propertyName)
Returns a memento to restore the specified property to its current value.
|
Copyright © 2024. All rights reserved.