Package org.apache.tapestry5.ioc.test
Class IOCTestCase
- java.lang.Object
-
- org.testng.Assert
-
- org.apache.tapestry5.test.ioc.TestUtils
-
- org.apache.tapestry5.test.ioc.TestBase
-
- org.apache.tapestry5.ioc.test.IOCTestCase
-
- Direct Known Subclasses:
TapestryTestCase
public class IOCTestCase extends TestBase
Deprecated.In 5.4, with no replacementAdd factory and trainer methods for the public interfaces of Tapestry IOC.
-
-
Constructor Summary
Constructors Constructor Description IOCTestCase()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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>
voidtrain_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>
voidtrain_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.-
Methods inherited from class org.apache.tapestry5.test.ioc.TestBase
discardMockControl, expect, getMocksControl, newCapture, newMock, replay, setAnswer, setThrowable, verify
-
Methods inherited from class org.apache.tapestry5.test.ioc.TestUtils
assertArraysEqual, assertListsEquals, assertListsEquals, assertMessageContains, create, get, set, showLists, unreachable
-
Methods inherited from class org.testng.Assert
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
-
-
-
-
Constructor Detail
-
IOCTestCase
public IOCTestCase()
Deprecated.
-
-
Method Detail
-
buildRegistry
protected final Registry buildRegistry(Class... moduleClasses)
Deprecated.Builds a Registry for the provided modules; caller should shutdown the Registry when done.
-
findMethod
protected final Method findMethod(Class clazz, String methodName)
Deprecated.
-
findMethod
protected final Method findMethod(Object subject, String methodName)
Deprecated.
-
findMethod
protected final Method findMethod(String methodName)
Deprecated.
-
join
protected final String join(String... lines)
Deprecated.Combines a series of lines by forming a string with a line separator after each line.
-
mockAnnotationProvider
protected final AnnotationProvider mockAnnotationProvider()
Deprecated.
-
mockConfiguration
protected final <T> Configuration<T> mockConfiguration()
Deprecated.
-
mockContributionDef
protected final ContributionDef mockContributionDef()
Deprecated.
-
mockDecoratorDef
protected final DecoratorDef mockDecoratorDef()
Deprecated.
-
mockDecoratorDef2
protected final DecoratorDef2 mockDecoratorDef2()
Deprecated.
-
mockAdvisorDef
protected final AdvisorDef mockAdvisorDef()
Deprecated.
-
mockAdvisorDef2
protected final AdvisorDef2 mockAdvisorDef2()
Deprecated.
-
mockLocation
protected final Location mockLocation()
Deprecated.
-
mockLogger
protected final org.slf4j.Logger mockLogger()
Deprecated.
-
stub_isDebugEnabled
protected final void stub_isDebugEnabled(org.slf4j.Logger logger, boolean enabled)
Deprecated.
-
mockMappedConfiguration
protected final <K,V> MappedConfiguration<K,V> mockMappedConfiguration()
Deprecated.
-
mockMessageFormatter
protected final MessageFormatter mockMessageFormatter()
Deprecated.
-
mockMessages
protected final Messages mockMessages()
Deprecated.
-
mockModuleDef
protected final ModuleDef mockModuleDef()
Deprecated.
-
mockModuleDef2
protected final ModuleDef2 mockModuleDef2()
Deprecated.
-
mockObjectCreator
protected final ObjectCreator mockObjectCreator()
Deprecated.
-
mockObjectProvider
protected final ObjectProvider mockObjectProvider()
Deprecated.
-
mockOrderedConfiguration
protected final <T> OrderedConfiguration<T> mockOrderedConfiguration()
Deprecated.
-
mockResource
protected final Resource mockResource()
Deprecated.
-
mockRunnable
protected final Runnable mockRunnable()
Deprecated.Frequently used as a placeholder for an arbitrary service (but its nice and simple).
-
mockServiceBuilderResources
protected final ServiceBuilderResources mockServiceBuilderResources()
Deprecated.
-
mockServiceDecorator
protected final ServiceDecorator mockServiceDecorator()
Deprecated.
-
mockServiceDef
protected final ServiceDef mockServiceDef()
Deprecated.
-
mockObjectLocator
protected final ObjectLocator mockObjectLocator()
Deprecated.
-
mockServiceResources
protected final ServiceResources mockServiceResources()
Deprecated.
-
mockSymbolSource
protected final SymbolSource mockSymbolSource()
Deprecated.
-
mockThreadLocale
protected final ThreadLocale mockThreadLocale()
Deprecated.
-
mockTypeCoercer
protected final TypeCoercer mockTypeCoercer()
Deprecated.
-
stub_contains
protected final void stub_contains(Messages messages, boolean contained)
Deprecated.
-
train_coerce
protected <S,T> void train_coerce(TypeCoercer coercer, S input, Class<T> expectedType, T coercedValue)
Deprecated.
-
train_contains
protected final void train_contains(Messages messages, String key, boolean result)
Deprecated.
-
train_createInterceptor
protected final void train_createInterceptor(ServiceDecorator decorator, Object coreObject, Object interceptor)
Deprecated.
-
train_createObject
protected final void train_createObject(ObjectCreator creator, Object service)
Deprecated.
-
train_expandSymbols
protected final void train_expandSymbols(SymbolSource source, String input)
Deprecated.
-
train_expandSymbols
protected final void train_expandSymbols(SymbolSource source, String input, String expanded)
Deprecated.
-
train_forFile
protected final void train_forFile(Resource resource, String relativePath, Resource file)
Deprecated.
-
train_forLocale
protected final void train_forLocale(Resource base, Locale locale, Resource resource)
Deprecated.
-
train_format
protected void train_format(MessageFormatter formatter, String result, Object... arguments)
Deprecated.Have to put the result before the varargs.
-
train_get
protected final void train_get(Messages messages, String key, String message)
Deprecated.
-
train_getLocale
protected final void train_getLocale(ThreadLocale threadLocale, Locale locale)
Deprecated.
-
train_getLogger
protected final void train_getLogger(LoggerSource source, String serviceId, org.slf4j.Logger logger)
Deprecated.
-
train_getMessageFormatter
protected final void train_getMessageFormatter(Messages messages, String key, MessageFormatter formatter)
Deprecated.
-
train_getPath
protected final void train_getPath(Resource r, String path)
Deprecated.
-
train_getService
protected final <T> void train_getService(ObjectLocator locator, Class<T> serviceInterface, T service)
Deprecated.
-
train_getService
protected final <T> void train_getService(ObjectLocator locator, String serviceId, Class<T> serviceInterface, T service)
Deprecated.
-
train_getServiceId
protected final void train_getServiceId(ServiceDef def, String serviceId)
Deprecated.
-
train_getServiceId
protected final void train_getServiceId(ServiceResources resources, String serviceId)
Deprecated.
-
train_getServiceInterface
protected final void train_getServiceInterface(ServiceDef def, Class serviceInterface)
Deprecated.
-
train_getServiceInterface
protected final void train_getServiceInterface(ServiceResources resources, Class serviceInterface)
Deprecated.
-
train_getLogger
protected final void train_getLogger(ServiceResources resources, org.slf4j.Logger log)
Deprecated.
-
train_isDebugEnabled
protected final void train_isDebugEnabled(org.slf4j.Logger log, boolean debugEnabled)
Deprecated.
-
train_isTraceEnabled
protected final void train_isTraceEnabled(org.slf4j.Logger log, boolean traceEnabled)
Deprecated.
-
train_matches
protected final void train_matches(DecoratorDef decoratorDef, ServiceDef serviceDef, boolean matches)
Deprecated.
-
train_matches
protected final void train_matches(AdvisorDef advisorDef, ServiceDef serviceDef, boolean matches)
Deprecated.
-
train_provide
protected final <T> void train_provide(ObjectProvider provider, Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator, T object)
Deprecated.
-
train_toURL
protected final void train_toURL(Resource resource, URL url)
Deprecated.
-
train_getAnnotation
protected final <T extends Annotation> void train_getAnnotation(AnnotationProvider annotationProvider, Class<T> annotationClass, T annotation)
Deprecated.
-
mockMasterObjectProvider
protected final MasterObjectProvider mockMasterObjectProvider()
Deprecated.
-
train_value
protected final void train_value(IntermediateType it, Class value)
Deprecated.
-
newIntermediateType
protected final IntermediateType newIntermediateType()
Deprecated.
-
mockPropertyAdapter
protected final PropertyAdapter mockPropertyAdapter()
Deprecated.
-
mockClassPropertyAdapter
protected final ClassPropertyAdapter mockClassPropertyAdapter()
Deprecated.
-
mockPropertyAccess
protected final PropertyAccess mockPropertyAccess()
Deprecated.
-
train_autobuild
protected final <T> void train_autobuild(ObjectLocator locator, Class<T> beanClass, T instance)
Deprecated.
-
mockPerthreadManager
protected final PerthreadManager mockPerthreadManager()
Deprecated.
-
mockServiceResources
protected final ServiceResources mockServiceResources(OperationTracker tracker)
Deprecated.
-
train_getTracker
protected final void train_getTracker(ServiceResources resources, OperationTracker tracker)
Deprecated.
-
mockServiceBuilderResources
protected final ServiceBuilderResources mockServiceBuilderResources(OperationTracker tracker)
Deprecated.
-
train_valueForSymbol
protected final void train_valueForSymbol(SymbolSource symbolSource, String symbolName, String value)
Deprecated.
-
-