Index

A B C D E G I K L M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

afterEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
 
afterEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SettingBundleStub
 
afterEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnv
Invokes SilverTestEnvContext.afterTest(TestExecutionContext) and then clear the IoC container.
afterTest(SilverTestEnvContext.TestExecutionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Execute some actions to perform once the execution of a unit test has been completed.

B

beforeEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
 
beforeEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.LoggerExtension
 
beforeEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SettingBundleStub
 
beforeEach(ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnv
beforeTest(SilverTestEnvContext.TestExecutionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Execute some actions to perform before the execution of a unit test.

C

clear() - Method in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
 
clear() - Method in class org.silverpeas.kernel.test.extension.SettingBundleStub
 
clear() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Clears the test environment context.
clear() - Method in class org.silverpeas.kernel.test.TestBeanContainer
Clears the container.
consume(Class<?>) - Method in interface org.silverpeas.kernel.test.util.Reflections.TypeConsumer
 
context() - Element in annotation type org.silverpeas.kernel.test.extension.EnableSilverTestEnv
The test environment context to use when bootstrapping the Silverpeas unit test environment with an IoC/IoD subsystem.

D

DEFAULT_CONTEXT - Static variable in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Default test context.
DependencyResolver - Class in org.silverpeas.kernel.test
A resolver of dependencies on managed beans in a given object itself managed by the underlying IoC container.
DependencyResolver() - Constructor for class org.silverpeas.kernel.test.DependencyResolver
 

E

EnableSilverTestEnv - Annotation Type in org.silverpeas.kernel.test.extension
Enables the Silverpeas environment dedicated to the unit tests.

G

get() - Static method in class org.silverpeas.kernel.test.DependencyResolver
Gets an instance of a dependency resolver.
getAllBeansByType(Class<T>, Annotation...) - Method in class org.silverpeas.kernel.test.TestBeanContainer
 
getBeanByName(String) - Method in class org.silverpeas.kernel.test.TestBeanContainer
 
getBeanByType(Class<T>, Annotation...) - Method in class org.silverpeas.kernel.test.TestBeanContainer
 
getBeansToManage() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Gets the classes of the beans to preload into the IoC/IoD subsystem used in the tests.
getConfigurationFilesRootPath() - Method in class org.silverpeas.kernel.test.TestResourcesLocation
 
getDeclaredAnnotations(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.silverpeas.kernel.test.util.Reflections
Gets all the annotations declared on the specified element and that satisfies the given annotation type.
getenv() - Method in class org.silverpeas.kernel.test.TestSystemWrapper
 
getenv(String) - Method in class org.silverpeas.kernel.test.TestSystemWrapper
 
getInstance() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext.TestExecutionContext
Gets the instance of the test.
getInstance() - Static method in class org.silverpeas.kernel.test.TestContext
 
getL10nBundlesRootPath() - Method in class org.silverpeas.kernel.test.TestResourcesLocation
 
getLoggerRootHomePath() - Method in class org.silverpeas.kernel.test.TestContext
Gets the path of the directory in which are located the logger configuration files that are available to the unit test during its execution.
getLoggersRootPath() - Method in class org.silverpeas.kernel.test.TestResourcesLocation
 
getMavenProperties() - Method in class org.silverpeas.kernel.test.TestContext
Gets the properties of the project with which the unit test is configured.
getMocksToManage() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Gets the mocks to preload into the IoC/IoD subsystem used in the tests.
getPathOfBuildDirectory() - Method in class org.silverpeas.kernel.test.TestContext
Gets the path of the directory into which are build the source code of the project and into which the resources of the project are also copied.
getPathOfTestResources() - Method in class org.silverpeas.kernel.test.TestContext
Gets the path of the directory in which are located the resources available to the unit test during its execution.
getTest() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext.TestExecutionContext
Gets the unit test targeted for execution.
getType() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext.TestExecutionContext
Gets the type of the unit test class.

I

init() - Method in class org.silverpeas.kernel.test.extension.SilverTestEnvContext
Initializes the test environment context.
instantiate(Class<T>) - Static method in class org.silverpeas.kernel.test.util.Reflections
Constructs an instance of the specified concrete class by using its default non-arguments constructor.

K

key() - Element in annotation type org.silverpeas.kernel.test.annotations.SystemProperty
 

L

LANGUAGE_ALL - Static variable in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
All the languages the LocalizationBundle actually supports.
LANGUAGE_DE - Static variable in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
The default ISO 639-1 code of the german language for the LocalizationBundle
LANGUAGE_EN - Static variable in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
The default ISO 639-1 code of the english language for the LocalizationBundle
LANGUAGE_FR - Static variable in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
The default ISO 639-1 code of the french language for the LocalizationBundle
LocalizationBundleStub - Class in org.silverpeas.kernel.test.extension
Provides easy stubbing on the LocalizationBundle in unit tests.
LocalizationBundleStub(String, String...) - Constructor for class org.silverpeas.kernel.test.extension.LocalizationBundleStub
 
LoggerExtension - Class in org.silverpeas.kernel.test.extension
JUnit 5 extension to take care of the logger levels to set in a given unit test.
LoggerExtension() - Constructor for class org.silverpeas.kernel.test.extension.LoggerExtension
 
LoggerLevel - Annotation Type in org.silverpeas.kernel.test.extension
Annotation to specify a logger level.
loopInheritance(Class<?>, Reflections.TypeConsumer) - Static method in class org.silverpeas.kernel.test.util.Reflections
Browses the inheritance graph of the specified type up to his root parent and applies for each parent type the specified type consumer.

M

manageBean(T, Class<? super T>, Annotation...) - Method in class org.silverpeas.kernel.TestManagedBeanFeeder
Manages explicitly the specified bean for the given type and with the specified qualifiers.
manageBeanForType(Class<T>, Class<? super T>, Annotation...) - Method in class org.silverpeas.kernel.TestManagedBeanFeeder
Manages the beans of the specified class for the given type and with the specified qualifiers.
manageBeanWithName(T, String) - Method in class org.silverpeas.kernel.TestManagedBeanFeeder
Manages explicitly the specified bean under the given unique name.

O

org.silverpeas.kernel - package org.silverpeas.kernel
 
org.silverpeas.kernel.test - package org.silverpeas.kernel.test
 
org.silverpeas.kernel.test.annotations - package org.silverpeas.kernel.test.annotations
 
org.silverpeas.kernel.test.extension - package org.silverpeas.kernel.test.extension
Provides various JUnit 5 extensions to prepare and configure the context of execution of unit tests.
org.silverpeas.kernel.test.util - package org.silverpeas.kernel.test.util
 

P

postProcessTestInstance(Object, ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnv
Loads into the IoC container dedicated to the unit test all the classes or beans that are annotated with one of the following annotations: TestManagedBeans: the specified classes of objects are registered into the IoC container TestManagedMock: the annotated field of the test instance is set with a mock that has been registered into the IoC container in order to resolve the dependency on it of managed beans used by the tested class TestManagedBean: the annotated field of the test instance is set with a bean that was automatically put into the IoC container.
put(String, String) - Method in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
Puts a couple key / value linked to default locale set by the extension itself.
put(String, String) - Method in class org.silverpeas.kernel.test.extension.SettingBundleStub
Puts a couple key / value.
put(String, String, String) - Method in class org.silverpeas.kernel.test.extension.LocalizationBundleStub
Puts a couple key / value linked to specified locale.
putBean(Class<T>, Class<? super T>, Annotation...) - Method in class org.silverpeas.kernel.test.TestBeanContainer
Asks to manage the specified class of beans for the given type and with the specified qualifiers.
putBean(Class<T>, String) - Method in class org.silverpeas.kernel.test.TestBeanContainer
Asks to manage the specified class of beans under the given name so that the beans could be retrieved later with that name.
putBean(T, Class<T>, Annotation...) - Method in class org.silverpeas.kernel.test.TestBeanContainer
Puts directly into the container the specified bean for the given type and with the specified qualifiers.
putBean(T, String) - Method in class org.silverpeas.kernel.test.TestBeanContainer
Puts directly into the container the specified bean and with the given name so that the bean could be retrieved later with that name.

R

Reflections - Class in org.silverpeas.kernel.test.util
Common reflection utility operations for testing purpose.
Reflections.TypeConsumer - Interface in org.silverpeas.kernel.test.util
A function to apply on a given type.
removeAll() - Method in class org.silverpeas.kernel.test.extension.SettingBundleStub
Removes all registered keys.
removeAllManagedBeans() - Method in class org.silverpeas.kernel.TestManagedBeanFeeder
Removes all the beans that were fed into the IoC container.
resolve(Object) - Method in class org.silverpeas.kernel.test.DependencyResolver
Resolves the dependencies on others managed bean of the specified object.
resolveCustomDependency(Field, Annotation...) - Method in class org.silverpeas.kernel.test.DependencyResolver
Applies a custom dependency resolution mechanism.
resolveDependency(Field, Annotation...) - Method in class org.silverpeas.kernel.test.DependencyResolver
Applies the default dependency resolution mechanism.
resolveParameter(ParameterContext, ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnv
Resolves the parameter referred by the parameter context by valuing it according to its annotation: if annotated with one of the following annotations TestManagedBean and TestManagedMock, the parameter type will be looked for in the bean container for value injection.

S

setField(Class<?>, Object, Field, Object) - Static method in class org.silverpeas.kernel.test.util.Reflections
Sets the specified value to the given field of the specified object inherited from the given type of the object.
setField(Object, Field, Object) - Static method in class org.silverpeas.kernel.test.util.Reflections
Sets the specified value to the given field of the specified object.
setField(Object, String, Object) - Static method in class org.silverpeas.kernel.test.util.Reflections
Sets the specified value to the given field of the specified object.
setProperties(Properties) - Method in class org.silverpeas.kernel.test.TestSystemWrapper
 
setProperty(String, String) - Method in class org.silverpeas.kernel.test.TestSystemWrapper
 
setStaticField(Class<?>, Field, Object) - Static method in class org.silverpeas.kernel.test.util.Reflections
Sets the specified value to the given static field of the specified class.
setStaticField(Class<?>, String, Object) - Static method in class org.silverpeas.kernel.test.util.Reflections
Sets the specified value to the static field with the specified name in the given class.
SettingBundleStub - Class in org.silverpeas.kernel.test.extension
Provides easy stubbing on the SettingBundle in unit tests.
SettingBundleStub(Class<?>, String) - Constructor for class org.silverpeas.kernel.test.extension.SettingBundleStub
 
SettingBundleStub(String) - Constructor for class org.silverpeas.kernel.test.extension.SettingBundleStub
Initializing the setting bundle by this way means that unit or integration test is looking for bundle registry at each test.
SettingBundleStub(SettingBundle) - Constructor for class org.silverpeas.kernel.test.extension.SettingBundleStub
Initializing the setting bundled by this way means that the setting could have already been accessed by another class or instance and the setting bundle instance is registered into a static attribute or an attribute that will be shared between all tests.
SilverpeasReflectionException - Exception Class in org.silverpeas.kernel.test.util
Exception thrown when an error occurs while performing reflection operation on an object.
SilverpeasReflectionException(String) - Constructor for exception class org.silverpeas.kernel.test.util.SilverpeasReflectionException
 
SilverpeasReflectionException(String, Throwable) - Constructor for exception class org.silverpeas.kernel.test.util.SilverpeasReflectionException
 
SilverpeasReflectionException(Throwable) - Constructor for exception class org.silverpeas.kernel.test.util.SilverpeasReflectionException
 
SilverTestEnv - Class in org.silverpeas.kernel.test.extension
Prepares the environment specific to Silverpeas to run unit tests.
SilverTestEnv() - Constructor for class org.silverpeas.kernel.test.extension.SilverTestEnv
 
SilverTestEnvContext - Class in org.silverpeas.kernel.test.extension
Context of the Silverpeas testing environment enabled by the EnableSilverTestEnv Junit extension.
SilverTestEnvContext() - Constructor for class org.silverpeas.kernel.test.extension.SilverTestEnvContext
 
SilverTestEnvContext.TestExecutionContext - Class in org.silverpeas.kernel.test.extension
Execution context of a given test.
stubbed() - Element in annotation type org.silverpeas.kernel.test.annotations.TestManagedMock
Is all of the methods of the mock should be stubbed?
supportsParameter(ParameterContext, ExtensionContext) - Method in class org.silverpeas.kernel.test.extension.SilverTestEnv
Is the parameter in a test's method is supported by this extension for value injection?
SystemProperties - Annotation Type in org.silverpeas.kernel.test.annotations
Annotation used to declare a set of properties to set among the system properties within the SystemWrapper.
SystemProperty - Annotation Type in org.silverpeas.kernel.test.annotations
Annotation used to declare a property to set among the system properties within the SystemWrapper.

T

TestBeanContainer - Class in org.silverpeas.kernel.test
Implementation of the BeanContainer interface dedicated to the unit tests implying and requiring an IoC/IoD container.
TestBeanContainer() - Constructor for class org.silverpeas.kernel.test.TestBeanContainer
 
TestContext - Class in org.silverpeas.kernel.test
Context of a unit test.
TestedBean - Annotation Type in org.silverpeas.kernel.test.annotations
Annotation to indicate that a field in a unit test class is the bean to test and this bean is managed by the IoC container used by the unit tests.
TestManagedBean - Annotation Type in org.silverpeas.kernel.test.annotations
This annotation is used to indicate that the type of a field or a parameter of a test (method) in the unit test class has to be managed by the IoC container used by the unit tests.
TestManagedBeanFeeder - Class in org.silverpeas.kernel
A feeder of beans to manage in the underlying IoC subsystem.
TestManagedBeanFeeder() - Constructor for class org.silverpeas.kernel.TestManagedBeanFeeder
 
TestManagedBeans - Annotation Type in org.silverpeas.kernel.test.annotations
Annotation used to declare a set of classes to be managed by the IoC container used in the unit tests so that the dependencies of others managed beans and that are required by the unit tests could be resolved.
TestManagedMock - Annotation Type in org.silverpeas.kernel.test.annotations
This annotation is used to indicate that a field or a parameter of a test (method) in a unit test class has to be mocked and the resulting mock put into the IoC container used in the unit tests and this before any execution of any unit tests.
TestManagedMocks - Annotation Type in org.silverpeas.kernel.test.annotations
Annotation used to declare a set of classes to mock.
TestResourcesLocation - Class in org.silverpeas.kernel.test
Implementation of the SilverpeasResourcesLocation interface to be used in the scope of a unit test.
TestResourcesLocation() - Constructor for class org.silverpeas.kernel.test.TestResourcesLocation
 
TestSystemWrapper - Class in org.silverpeas.kernel.test
Simple implementation of the SystemWrapper to be used in the unit tests.
TestSystemWrapper() - Constructor for class org.silverpeas.kernel.test.TestSystemWrapper
 

U

UnitTest - Annotation Type in org.silverpeas.kernel.test
Annotation to mark a test as being a unit test.

V

value() - Element in annotation type org.silverpeas.kernel.test.annotations.SystemProperties
 
value() - Element in annotation type org.silverpeas.kernel.test.annotations.SystemProperty
 
value() - Element in annotation type org.silverpeas.kernel.test.annotations.TestManagedBeans
 
value() - Element in annotation type org.silverpeas.kernel.test.annotations.TestManagedMocks
 
value() - Element in annotation type org.silverpeas.kernel.test.extension.LoggerLevel
 
A B C D E G I K L M O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form