Index

A B C D E G H I J L M N O P R S 
All Classes|All Packages

A

addBeanConverterExtension(BeanConverterExtension) - Method in class de.ppi.deepsampler.persistence.PersistentSamplerContext
 
addBeanExtension(BeanConverterExtension) - Method in class de.ppi.deepsampler.persistence.api.PersistentSampleManager
Add a BeanConverterExtension to the sample manager.
addExtension(BeanConverterExtension) - Method in class de.ppi.deepsampler.persistence.bean.PersistentBeanConverter
 
addSource(SourceManager) - Method in class de.ppi.deepsampler.persistence.api.PersistentSampleManager
Add another SourceManager to this builder.
anyRecorded() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches parameters during recording and during tests, that use previously recorded samples.
anyRecorded(PersistentMatcher<T>) - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches all types of parameters during recording and during tests, that use previously recorded samples.
anyRecorded(Class<T>) - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches parameters during recording and during tests, that use previously recorded samples.
anyRecordedBoolean() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches boolean parameters during recording and during tests, that use previously recorded samples.
anyRecordedByte() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches byte parameters during recording and during tests, that use previously recorded samples.
anyRecordedChar() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches char parameters during recording and during tests, that use previously recorded samples.
anyRecordedDouble() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches double parameters during recording and during tests, that use previously recorded samples.
anyRecordedFloat() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches float parameters during recording and during tests, that use previously recorded samples.
anyRecordedInt() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches int parameters during recording and during tests, that use previously recorded samples.
anyRecordedLong() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches long parameters during recording and during tests, that use previously recorded samples.
anyRecordedShort() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches short parameters during recording and during tests, that use previously recorded samples.
anyRecordedString() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Matches string parameters during recording and during tests, that use previously recorded samples.

B

BeanConverterExtension - Interface in de.ppi.deepsampler.persistence.bean.ext
Interface for extensions of the PersistentBeanConverter.

C

CollectionExtension - Class in de.ppi.deepsampler.persistence.bean.ext
A BeanConverterExtension that is able to convert Collections from the original objects to the generic persistent model PersistentBean and vice versa.
CollectionExtension() - Constructor for class de.ppi.deepsampler.persistence.bean.ext.CollectionExtension
 
combo(T, PersistentMatcher<T>) - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Allows adding separate matchers for loading and recording of samples.
ComboMatcher<T> - Class in de.ppi.deepsampler.persistence.api
Special matcher to apply a ParameterMatcher and a PersistentMatcher to a single argument when defining a sample.
convert(Object, ParameterizedType, PersistentBeanConverter) - Method in interface de.ppi.deepsampler.persistence.bean.ext.BeanConverterExtension
Conversion logic for the type you defined to process and not to skip.
convert(Object, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.CollectionExtension
 
convert(Object, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.MapPrimitiveKeyExtension
 
convert(Object, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.OptionalExtension
 
convert(Object, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
 
convert(Object, Type) - Method in class de.ppi.deepsampler.persistence.bean.PersistentBeanConverter
Converts an original bean to the abstract model (most likely PersistentBean) that is used to save the original bean to e.g.
createEmptyArray(Object, Class<T>) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Creates an empty array.

D

de.ppi.deepsampler.persistence - package de.ppi.deepsampler.persistence
 
de.ppi.deepsampler.persistence.api - package de.ppi.deepsampler.persistence.api
 
de.ppi.deepsampler.persistence.bean - package de.ppi.deepsampler.persistence.bean
 
de.ppi.deepsampler.persistence.bean.ext - package de.ppi.deepsampler.persistence.bean.ext
 
de.ppi.deepsampler.persistence.error - package de.ppi.deepsampler.persistence.error
 
de.ppi.deepsampler.persistence.model - package de.ppi.deepsampler.persistence.model
 
DefaultPersistentBean - Class in de.ppi.deepsampler.persistence.bean
 
DefaultPersistentBean() - Constructor for class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 
DefaultPersistentBean(Map<String, Object>) - Constructor for class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 

E

equalsMatcher() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Create a PersistentMatcher for comparing two objects using their equals method.
EqualsMatcher() - Constructor for class de.ppi.deepsampler.persistence.api.PersistentMatchers.EqualsMatcher
 

G

getAllCalls() - Method in interface de.ppi.deepsampler.persistence.model.PersistentActualSample
 
getArrayDimensions(Object) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Finds the dimensions of the array array.
getId() - Method in interface de.ppi.deepsampler.persistence.model.PersistentModel
 
getOriginalClassFromPolymorphicPersistentBean(PolymorphicPersistentBean) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Retrieves the original type from polymorphicPersistentBean and tries to instantiate a Class for the type.
getParameter() - Method in interface de.ppi.deepsampler.persistence.model.PersistentParameter
 
getParameterizedType(Type) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Casts type to a ParameterizedType if type is a ParameterizedType.
getParameterMatcher() - Method in class de.ppi.deepsampler.persistence.api.ComboMatcher
 
getPersistentBeanConverter() - Method in class de.ppi.deepsampler.persistence.PersistentSamplerContext
 
getPersistentMatcher() - Method in class de.ppi.deepsampler.persistence.api.ComboMatcher
 
getPersistentParameter() - Method in interface de.ppi.deepsampler.persistence.model.PersistentMethodCall
 
getPersistentReturnValue() - Method in interface de.ppi.deepsampler.persistence.model.PersistentMethodCall
 
getPolymorphicBeanType() - Method in class de.ppi.deepsampler.persistence.bean.PolymorphicPersistentBean
 
getRawClass(Type) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
If type is a ParameterizedType the raw type, that a ParameterizedType contains, is returned.
getRootComponentType(Class<?>) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Finds the root component type of the array array.
getSampleMethodId() - Method in interface de.ppi.deepsampler.persistence.model.PersistentSampleMethod
 
getSampleMethodToSampleMap() - Method in interface de.ppi.deepsampler.persistence.model.PersistentModel
 
getValue(String) - Method in class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 
getValue(String) - Method in interface de.ppi.deepsampler.persistence.model.PersistentBean
 
getValues() - Method in class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 
getValues() - Method in interface de.ppi.deepsampler.persistence.model.PersistentBean
 

H

hasPrimitiveTypeParameters(Type) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Checks if type has a generic type parameter which is a primitive or its wrapper like Integer.
hasPrimitiveTypeParameters(Type, int) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Checks if type has generic type parameters which are a primitive or its wrapper like Integer.

I

isObjectArray(Class<?>) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Checks if cls is an Array with a complex component type.
isPrimitiveOrWrapper(Class<?>) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Checks if cls is a primitive type or one of its wrapper types i.e.
isProcessable(Class<?>, ParameterizedType) - Method in interface de.ppi.deepsampler.persistence.bean.ext.BeanConverterExtension
Checks it this extension is responsible for objects of the type beanType.
isProcessable(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.CollectionExtension
 
isProcessable(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.JavaTimeExtension
 
isProcessable(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.MapPrimitiveKeyExtension
 
isProcessable(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.OptionalExtension
 

J

JavaTimeExtension - Class in de.ppi.deepsampler.persistence.bean.ext
 
JavaTimeExtension() - Constructor for class de.ppi.deepsampler.persistence.bean.ext.JavaTimeExtension
 

L

load() - Method in class de.ppi.deepsampler.persistence.api.PersistentSampleManager
End of chain method: call SourceManager.load() on all SourceManagers and write all loaded samples to the DeepSampler repositories.
load() - Method in interface de.ppi.deepsampler.persistence.api.SourceManager
Load the persistent data.

M

MapPrimitiveKeyExtension - Class in de.ppi.deepsampler.persistence.bean.ext
This BeanConverterExtension is able to convert Maps into a persistable model that can be sent to the underlying persistence api and vice versa.
MapPrimitiveKeyExtension() - Constructor for class de.ppi.deepsampler.persistence.bean.ext.MapPrimitiveKeyExtension
 
match(ParameterMatcher<T>, PersistentMatcher<T>) - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Allows adding separate matchers for loading and recording of samples.
matches(T) - Method in class de.ppi.deepsampler.persistence.api.ComboMatcher
 
matches(T, T) - Method in interface de.ppi.deepsampler.persistence.api.PersistentMatcher
Compares two values in an arbitrary way with each other.
matches(T, T) - Method in class de.ppi.deepsampler.persistence.api.PersistentMatchers.EqualsMatcher
 

N

NoMatchingSamplerFoundException - Exception in de.ppi.deepsampler.persistence.error
The NoMatchingSamplerFoundException is thrown if a JSON file (or any other source of persistent Samples) contains Samples that don't have a matching Sampler.
NoMatchingSamplerFoundException(String, List<SampleDefinition>) - Constructor for exception de.ppi.deepsampler.persistence.error.NoMatchingSamplerFoundException
 
NoMatchingSamplerFoundException(Collection<String>, List<SampleDefinition>) - Constructor for exception de.ppi.deepsampler.persistence.error.NoMatchingSamplerFoundException
 

O

OPTIONAL_PROPERTY - Static variable in class de.ppi.deepsampler.persistence.bean.ext.OptionalExtension
 
OptionalExtension - Class in de.ppi.deepsampler.persistence.bean.ext
A BeanConverterExtension that is able to record and load Optional values.
OptionalExtension() - Constructor for class de.ppi.deepsampler.persistence.bean.ext.OptionalExtension
 

P

parseString(String, Class<T>) - Static method in class de.ppi.deepsampler.persistence.bean.ReflectionTools
Converts the String source into a primitive wrapper object using the supplied wrapperType.
PersistenceException - Exception in de.ppi.deepsampler.persistence.error
 
PersistenceException(String, Object...) - Constructor for exception de.ppi.deepsampler.persistence.error.PersistenceException
Creates an PersistenceException with a message.
PersistenceException(String, Throwable, Object...) - Constructor for exception de.ppi.deepsampler.persistence.error.PersistenceException
Creates an PersistenceException with a message.
PersistentActualSample - Interface in de.ppi.deepsampler.persistence.model
 
PersistentBean - Interface in de.ppi.deepsampler.persistence.model
 
PersistentBeanConverter - Class in de.ppi.deepsampler.persistence.bean
DeepSampler saves Beans by converting them in an abstract model that enables DeepSampler to omit type information in persistent files.
PersistentBeanConverter() - Constructor for class de.ppi.deepsampler.persistence.bean.PersistentBeanConverter
 
PersistentMatcher<T> - Interface in de.ppi.deepsampler.persistence.api
When using the persistence API you usually suffer from one major drawback: you are not able to define how the real parameters will get matched with the recorded ones.
PersistentMatchers - Class in de.ppi.deepsampler.persistence.api
This class is a collection of factory methods for some different types of PersistentMatcher.
PersistentMatchers.EqualsMatcher<T> - Class in de.ppi.deepsampler.persistence.api
This Matcher is typically used by PersistentMatchers.equalsMatcher(), but since it is also used internally in various places it is implemented as a class rather than a simple lambda, as it is the case with most of the Matchers.
PersistentMethodCall - Interface in de.ppi.deepsampler.persistence.model
 
PersistentModel - Interface in de.ppi.deepsampler.persistence.model
 
PersistentParameter - Interface in de.ppi.deepsampler.persistence.model
 
PersistentSampleManager - Class in de.ppi.deepsampler.persistence.api
The PersistentSampleManager is used to handle any provided SourceManager and to act as a bridge between this manager and the DeepSampler repositories.
PersistentSampleManager(SourceManager) - Constructor for class de.ppi.deepsampler.persistence.api.PersistentSampleManager
 
PersistentSampleMethod - Interface in de.ppi.deepsampler.persistence.model
 
PersistentSampler - Class in de.ppi.deepsampler.persistence.api
The persistent sampler is the entry point for all operations regarding the persistence: loading samples recording samples
PersistentSamplerContext - Class in de.ppi.deepsampler.persistence
 
PersistentSamplerContext() - Constructor for class de.ppi.deepsampler.persistence.PersistentSamplerContext
 
PolymorphicPersistentBean - Class in de.ppi.deepsampler.persistence.bean
This class implements the necessary information to persist a bean which has a polymorphic structure.
PolymorphicPersistentBean() - Constructor for class de.ppi.deepsampler.persistence.bean.PolymorphicPersistentBean
 
PolymorphicPersistentBean(Map<String, Object>, String) - Constructor for class de.ppi.deepsampler.persistence.bean.PolymorphicPersistentBean
 
putValue(String, Object) - Method in class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 

R

recordSamples() - Method in class de.ppi.deepsampler.persistence.api.PersistentSampleManager
End of chain method: call SourceManager.save(Map, PersistentSamplerContext) on all added SourceManagers.
ReflectionTools - Class in de.ppi.deepsampler.persistence.bean
A collection of utility methods for frequently occurring reflection problems.
revert(Object, Class<T>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.PersistentBeanConverter
Reverts an abstract model from the persistence to the original bean.
revert(Object, Class<T>, ParameterizedType, PersistentBeanConverter) - Method in interface de.ppi.deepsampler.persistence.bean.ext.BeanConverterExtension
Conversion logic for the generic data-structure to the processed bean type.
revert(Object, Class<T>, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.CollectionExtension
 
revert(Object, Class<T>, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.MapPrimitiveKeyExtension
 
revert(Object, Class<T>, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.OptionalExtension
 
revert(Object, Class<T>, ParameterizedType, PersistentBeanConverter) - Method in class de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
 

S

sameMatcher() - Static method in class de.ppi.deepsampler.persistence.api.PersistentMatchers
Create a PersistentMatcher for comparing two objects by memory address (objOne == objTwo).
SamplerBeanConverter - Class in de.ppi.deepsampler.persistence
 
save(Map<Class<?>, ExecutionInformation>, PersistentSamplerContext) - Method in interface de.ppi.deepsampler.persistence.api.SourceManager
Save the executionInformation collected on runtime to your data source.
setValues(Map<String, Object>) - Method in class de.ppi.deepsampler.persistence.bean.DefaultPersistentBean
 
setValues(Map<String, Object>) - Method in interface de.ppi.deepsampler.persistence.model.PersistentBean
 
skip(Class<?>, ParameterizedType) - Method in interface de.ppi.deepsampler.persistence.bean.ext.BeanConverterExtension
Skip the conversion of all beans of the given type.
skip(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.CollectionExtension
We skip the conversion of all Collections, which have primitive (or their wrapper) generic types.
skip(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.JavaTimeExtension
 
skip(Class<?>, ParameterizedType) - Method in class de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
 
source(SourceManager) - Static method in class de.ppi.deepsampler.persistence.api.PersistentSampler
Entry method to load/record some samples.
SourceManager - Interface in de.ppi.deepsampler.persistence.api
A SourceManager is responsible for interacting with the actual persistent source.
StandardBeanConverterExtension - Class in de.ppi.deepsampler.persistence.bean.ext
 
StandardBeanConverterExtension() - Constructor for class de.ppi.deepsampler.persistence.bean.ext.StandardBeanConverterExtension
 
A B C D E G H I J L M N O P R S 
All Classes|All Packages