JavaScript is disabled on your browser.
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
C
D
G
I
M
N
P
R
S
T
U
C
ClassLoadingSupport
- Class in
com.meterware.simplestub
Supports special classloading as needed by unit tests.
ClassLoadingSupport()
- Constructor for class com.meterware.simplestub.
ClassLoadingSupport
ClassUtils
- Class in
com.meterware.simplestub
Utilities to handle JDK-specific functionality for defining classes.
ClassUtils()
- Constructor for class com.meterware.simplestub.
ClassUtils
com.meterware.simplestub
- package com.meterware.simplestub
com.meterware.simplestub.stubs
- package com.meterware.simplestub.stubs
createInstance()
- Static method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
Creates an instance for a test.
createNiceStub(Class<T>, Object...)
- Static method in class com.meterware.simplestub.
Stub
Instantiates a stub from an abstract class or interface, generating implementations for any abstract methods.
createStrictStub(Class<T>, Object...)
- Static method in class com.meterware.simplestub.
Stub
Instantiates a stub from an abstract class.
createStub(Class<T>, Object...)
- Static method in class com.meterware.simplestub.
Stub
Instantiates a stub from an abstract class or interface, generating implementations for any abstract methods.
createStubInThreadContextClassLoader(String, Class<?>)
- Static method in class com.meterware.simplestub.
ThreadContextClassLoaderSupport
Creates a test implementation or subclass of a given class with a specified name in the current thread context class-loader.
D
defineClass(Class<?>, String, byte[])
- Static method in class com.meterware.simplestub.
ClassUtils
Defines a new class from bytecode.
defineFile(String, String)
- Method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
Defines the contents for an in-memory file.
defineFile(String, String, String)
- Method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
Defines the contents for an in-memory file.
defineFile(String, byte...)
- Method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
Defines the contents for an in-memory file.
G
getJavaVersion()
- Static method in class com.meterware.simplestub.
SystemUtils
Returns the integer representing the major version of the JDK.
getOriginalValue()
- Method in interface com.meterware.simplestub.
Memento
getPath(String, String...)
- Method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
I
InMemoryFileSystem
- Class in
com.meterware.simplestub.stubs
A Test stub for the NIO file system.
InMemoryFileSystem()
- Constructor for class com.meterware.simplestub.stubs.
InMemoryFileSystem
install(Class<?>, String, Object)
- Static method in class com.meterware.simplestub.
StaticStubSupport
This method assigns the specified value to the named field in the specified class.
install(String, String)
- Static method in class com.meterware.simplestub.
SystemPropertySupport
Sets a property to the specified value, returning a memento to restore it.
install(ClassLoader)
- Static method in class com.meterware.simplestub.
ThreadContextClassLoaderSupport
Installs a classloader as the current thread context classloader, returning a memento which can be used to undo the installation.
M
Memento
- Interface in
com.meterware.simplestub
An object which contains all the information needed to revert something to its original value.
N
nestedClass(Class<?>, String...)
- Static method in class com.meterware.simplestub.
StaticStubSupport
Returns the nested class specified by an outer class and a sequences of class names.
NULL
- Static variable in interface com.meterware.simplestub.
Memento
P
preserve(Class<?>, String)
- Static method in class com.meterware.simplestub.
StaticStubSupport
This method returns a
Memento
object which can be used to revert the specified field to its current value.
preserve(String)
- Static method in class com.meterware.simplestub.
SystemPropertySupport
Returns a memento to restore the specified property to its current value.
preserve()
- Static method in class com.meterware.simplestub.
ThreadContextClassLoaderSupport
Returns a memento to restore the current thread context classloader.
provider()
- Method in class com.meterware.simplestub.stubs.
InMemoryFileSystem
R
reloadClass(Class<?>)
- Static method in class com.meterware.simplestub.
ClassLoadingSupport
EXPERIMENTAL! Reloads the specified class from a new classloader, allowing its static initializations to run again.
revert()
- Method in interface com.meterware.simplestub.
Memento
S
SimpleStubException
- Exception in
com.meterware.simplestub
An exception thrown when the simplestub library detects a problem in a stub definition.
SimpleStubException(String, Object...)
- Constructor for exception com.meterware.simplestub.
SimpleStubException
SimpleStubException(String, Throwable, Object...)
- Constructor for exception com.meterware.simplestub.
SimpleStubException
StaticStubSupport
- Class in
com.meterware.simplestub
A class which simplifies the assignment of stubs to static variables.
Stub
- Class in
com.meterware.simplestub
This class allows for the instantiation of auto-generated simple stubs from abstract classes.
Stub()
- Constructor for class com.meterware.simplestub.
Stub
SystemPropertySupport
- Class in
com.meterware.simplestub
A class which simplifies setting system properties in unit tests.
SystemPropertySupport()
- Constructor for class com.meterware.simplestub.
SystemPropertySupport
SystemUtils
- Class in
com.meterware.simplestub
Some common utilities.
T
ThreadContextClassLoaderSupport
- Class in
com.meterware.simplestub
Support for manipulating the thread context class-loader in a unit test.
ThreadContextClassLoaderSupport()
- Constructor for class com.meterware.simplestub.
ThreadContextClassLoaderSupport
U
UnexpectedMethodCallException
- Exception in
com.meterware.simplestub
Thrown by a strict stub if one of its undefined methods is called.
UnexpectedMethodCallException(String)
- Constructor for exception com.meterware.simplestub.
UnexpectedMethodCallException
C
D
G
I
M
N
P
R
S
T
U
Skip navigation links
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
Copyright © 2024. All rights reserved.