public class IOCTestCase extends TestBase
Constructor and Description |
---|
IOCTestCase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Registry |
buildRegistry(Class... moduleClasses)
Deprecated.
Builds a Registry for the provided modules; caller should shutdown the Registry when done.
|
protected Method |
findMethod(Class clazz,
String methodName)
Deprecated.
|
protected Method |
findMethod(Object subject,
String methodName)
Deprecated.
|
protected Method |
findMethod(String methodName)
Deprecated.
|
protected String |
join(String... lines)
Deprecated.
Combines a series of lines by forming a string with a line separator after each line.
|
protected AdvisorDef |
mockAdvisorDef()
Deprecated.
|
protected AdvisorDef2 |
mockAdvisorDef2()
Deprecated.
|
protected AnnotationProvider |
mockAnnotationProvider()
Deprecated.
|
protected ClassPropertyAdapter |
mockClassPropertyAdapter()
Deprecated.
|
protected <T> Configuration<T> |
mockConfiguration()
Deprecated.
|
protected ContributionDef |
mockContributionDef()
Deprecated.
|
protected DecoratorDef |
mockDecoratorDef()
Deprecated.
|
protected DecoratorDef2 |
mockDecoratorDef2()
Deprecated.
|
protected Location |
mockLocation()
Deprecated.
|
protected org.slf4j.Logger |
mockLogger()
Deprecated.
|
protected <K,V> MappedConfiguration<K,V> |
mockMappedConfiguration()
Deprecated.
|
protected MasterObjectProvider |
mockMasterObjectProvider()
Deprecated.
|
protected MessageFormatter |
mockMessageFormatter()
Deprecated.
|
protected Messages |
mockMessages()
Deprecated.
|
protected ModuleDef |
mockModuleDef()
Deprecated.
|
protected ModuleDef2 |
mockModuleDef2()
Deprecated.
|
protected ObjectCreator |
mockObjectCreator()
Deprecated.
|
protected ObjectLocator |
mockObjectLocator()
Deprecated.
|
protected ObjectProvider |
mockObjectProvider()
Deprecated.
|
protected <T> OrderedConfiguration<T> |
mockOrderedConfiguration()
Deprecated.
|
protected PerthreadManager |
mockPerthreadManager()
Deprecated.
|
protected PropertyAccess |
mockPropertyAccess()
Deprecated.
|
protected PropertyAdapter |
mockPropertyAdapter()
Deprecated.
|
protected Resource |
mockResource()
Deprecated.
|
protected Runnable |
mockRunnable()
Deprecated.
Frequently used as a placeholder for an arbitrary service (but its nice and simple).
|
protected ServiceBuilderResources |
mockServiceBuilderResources()
Deprecated.
|
protected ServiceBuilderResources |
mockServiceBuilderResources(OperationTracker tracker)
Deprecated.
|
protected ServiceDecorator |
mockServiceDecorator()
Deprecated.
|
protected ServiceDef |
mockServiceDef()
Deprecated.
|
protected ServiceResources |
mockServiceResources()
Deprecated.
|
protected ServiceResources |
mockServiceResources(OperationTracker tracker)
Deprecated.
|
protected SymbolSource |
mockSymbolSource()
Deprecated.
|
protected ThreadLocale |
mockThreadLocale()
Deprecated.
|
protected TypeCoercer |
mockTypeCoercer()
Deprecated.
|
protected IntermediateType |
newIntermediateType()
Deprecated.
|
protected void |
stub_contains(Messages messages,
boolean contained)
Deprecated.
|
protected void |
stub_isDebugEnabled(org.slf4j.Logger logger,
boolean enabled)
Deprecated.
|
protected void |
touch(File f)
Deprecated.
Touches the file, changing the last modified time to the current time.
|
protected <T> void |
train_autobuild(ObjectLocator locator,
Class<T> beanClass,
T instance)
Deprecated.
|
protected <S,T> void |
train_coerce(TypeCoercer coercer,
S input,
Class<T> expectedType,
T coercedValue)
Deprecated.
|
protected void |
train_contains(Messages messages,
String key,
boolean result)
Deprecated.
|
protected void |
train_createInterceptor(ServiceDecorator decorator,
Object coreObject,
Object interceptor)
Deprecated.
|
protected void |
train_createObject(ObjectCreator creator,
Object service)
Deprecated.
|
protected void |
train_expandSymbols(SymbolSource source,
String input)
Deprecated.
|
protected void |
train_expandSymbols(SymbolSource source,
String input,
String expanded)
Deprecated.
|
protected void |
train_forFile(Resource resource,
String relativePath,
Resource file)
Deprecated.
|
protected void |
train_forLocale(Resource base,
Locale locale,
Resource resource)
Deprecated.
|
protected void |
train_format(MessageFormatter formatter,
String result,
Object... arguments)
Deprecated.
Have to put the result before the varargs.
|
protected void |
train_get(Messages messages,
String key,
String message)
Deprecated.
|
protected <T extends Annotation> |
train_getAnnotation(AnnotationProvider annotationProvider,
Class<T> annotationClass,
T annotation)
Deprecated.
|
protected void |
train_getLocale(ThreadLocale threadLocale,
Locale locale)
Deprecated.
|
protected void |
train_getLogger(LoggerSource source,
String serviceId,
org.slf4j.Logger logger)
Deprecated.
|
protected void |
train_getLogger(ServiceResources resources,
org.slf4j.Logger log)
Deprecated.
|
protected void |
train_getMessageFormatter(Messages messages,
String key,
MessageFormatter formatter)
Deprecated.
|
protected void |
train_getPath(Resource r,
String path)
Deprecated.
|
protected <T> void |
train_getService(ObjectLocator locator,
Class<T> serviceInterface,
T service)
Deprecated.
|
protected <T> void |
train_getService(ObjectLocator locator,
String serviceId,
Class<T> serviceInterface,
T service)
Deprecated.
|
protected void |
train_getServiceId(ServiceDef def,
String serviceId)
Deprecated.
|
protected void |
train_getServiceId(ServiceResources resources,
String serviceId)
Deprecated.
|
protected void |
train_getServiceInterface(ServiceDef def,
Class serviceInterface)
Deprecated.
|
protected void |
train_getServiceInterface(ServiceResources resources,
Class serviceInterface)
Deprecated.
|
protected void |
train_getTracker(ServiceResources resources,
OperationTracker tracker)
Deprecated.
|
protected void |
train_isDebugEnabled(org.slf4j.Logger log,
boolean debugEnabled)
Deprecated.
|
protected void |
train_isTraceEnabled(org.slf4j.Logger log,
boolean traceEnabled)
Deprecated.
|
protected void |
train_matches(AdvisorDef advisorDef,
ServiceDef serviceDef,
boolean matches)
Deprecated.
|
protected void |
train_matches(DecoratorDef decoratorDef,
ServiceDef serviceDef,
boolean matches)
Deprecated.
|
protected <T> void |
train_provide(ObjectProvider provider,
Class<T> objectType,
AnnotationProvider annotationProvider,
ObjectLocator locator,
T object)
Deprecated.
|
protected void |
train_toURL(Resource resource,
URL url)
Deprecated.
|
protected void |
train_value(IntermediateType it,
Class value)
Deprecated.
|
protected void |
train_valueForSymbol(SymbolSource symbolSource,
String symbolName,
String value)
Deprecated.
|
discardMockControl, expect, getMocksControl, newCapture, newMock, replay, setAnswer, setThrowable, verify
assertArraysEqual, assertListsEquals, assertListsEquals, assertMessageContains, create, get, set, showLists, unreachable
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsNoOrder, assertEqualsNoOrder, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, fail
public IOCTestCase()
protected final Registry buildRegistry(Class... moduleClasses)
protected final Method findMethod(Class clazz, String methodName)
protected final Method findMethod(Object subject, String methodName)
protected final Method findMethod(String methodName)
protected final String join(String... lines)
protected final AnnotationProvider mockAnnotationProvider()
protected final <T> Configuration<T> mockConfiguration()
protected final ContributionDef mockContributionDef()
protected final DecoratorDef mockDecoratorDef()
protected final DecoratorDef2 mockDecoratorDef2()
protected final AdvisorDef mockAdvisorDef()
protected final AdvisorDef2 mockAdvisorDef2()
protected final Location mockLocation()
protected final org.slf4j.Logger mockLogger()
protected final void stub_isDebugEnabled(org.slf4j.Logger logger, boolean enabled)
protected final <K,V> MappedConfiguration<K,V> mockMappedConfiguration()
protected final MessageFormatter mockMessageFormatter()
protected final Messages mockMessages()
protected final ModuleDef mockModuleDef()
protected final ModuleDef2 mockModuleDef2()
protected final ObjectCreator mockObjectCreator()
protected final ObjectProvider mockObjectProvider()
protected final <T> OrderedConfiguration<T> mockOrderedConfiguration()
protected final Resource mockResource()
protected final Runnable mockRunnable()
protected final ServiceBuilderResources mockServiceBuilderResources()
protected final ServiceDecorator mockServiceDecorator()
protected final ServiceDef mockServiceDef()
protected final ObjectLocator mockObjectLocator()
protected final ServiceResources mockServiceResources()
protected final SymbolSource mockSymbolSource()
protected final ThreadLocale mockThreadLocale()
protected final TypeCoercer mockTypeCoercer()
protected final void stub_contains(Messages messages, boolean contained)
protected <S,T> void train_coerce(TypeCoercer coercer, S input, Class<T> expectedType, T coercedValue)
protected final void train_contains(Messages messages, String key, boolean result)
protected final void train_createInterceptor(ServiceDecorator decorator, Object coreObject, Object interceptor)
protected final void train_createObject(ObjectCreator creator, Object service)
protected final void train_expandSymbols(SymbolSource source, String input)
protected final void train_expandSymbols(SymbolSource source, String input, String expanded)
protected final void train_forFile(Resource resource, String relativePath, Resource file)
protected final void train_forLocale(Resource base, Locale locale, Resource resource)
protected void train_format(MessageFormatter formatter, String result, Object... arguments)
protected final void train_getLocale(ThreadLocale threadLocale, Locale locale)
protected final void train_getLogger(LoggerSource source, String serviceId, org.slf4j.Logger logger)
protected final void train_getMessageFormatter(Messages messages, String key, MessageFormatter formatter)
protected final void train_getPath(Resource r, String path)
protected final <T> void train_getService(ObjectLocator locator, Class<T> serviceInterface, T service)
protected final <T> void train_getService(ObjectLocator locator, String serviceId, Class<T> serviceInterface, T service)
protected final void train_getServiceId(ServiceDef def, String serviceId)
protected final void train_getServiceId(ServiceResources resources, String serviceId)
protected final void train_getServiceInterface(ServiceDef def, Class serviceInterface)
protected final void train_getServiceInterface(ServiceResources resources, Class serviceInterface)
protected final void train_getLogger(ServiceResources resources, org.slf4j.Logger log)
protected final void train_isDebugEnabled(org.slf4j.Logger log, boolean debugEnabled)
protected final void train_isTraceEnabled(org.slf4j.Logger log, boolean traceEnabled)
protected final void train_matches(DecoratorDef decoratorDef, ServiceDef serviceDef, boolean matches)
protected final void train_matches(AdvisorDef advisorDef, ServiceDef serviceDef, boolean matches)
protected final <T> void train_provide(ObjectProvider provider, Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator, T object)
protected final void train_toURL(Resource resource, URL url)
protected final <T extends Annotation> void train_getAnnotation(AnnotationProvider annotationProvider, Class<T> annotationClass, T annotation)
protected final MasterObjectProvider mockMasterObjectProvider()
protected final void train_value(IntermediateType it, Class value)
protected final IntermediateType newIntermediateType()
protected final PropertyAdapter mockPropertyAdapter()
protected final ClassPropertyAdapter mockClassPropertyAdapter()
protected final PropertyAccess mockPropertyAccess()
protected final <T> void train_autobuild(ObjectLocator locator, Class<T> beanClass, T instance)
protected final PerthreadManager mockPerthreadManager()
protected final ServiceResources mockServiceResources(OperationTracker tracker)
protected final void train_getTracker(ServiceResources resources, OperationTracker tracker)
protected final ServiceBuilderResources mockServiceBuilderResources(OperationTracker tracker)
protected final void train_valueForSymbol(SymbolSource symbolSource, String symbolName, String value)
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.