public interface VerifierSettings
BeanVerifier,
BeanTesterBuilder,
Configuration| Modifier and Type | Method and Description |
|---|---|
<T,S> VerifierSettings |
addEqualsInsignificantProperty(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter)
Add a property that is insignificant for EqualsMethodTester
|
<T,S> VerifierSettings |
addEqualsInsignificantProperty(String propertyName)
Add a property that is insignificant for EqualsMethodTester
|
<T,S> VerifierSettings |
addIgnoredProperty(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter)
Mark the specified property as one to be disregarded/ignored during testing.
|
VerifierSettings |
addIgnoredPropertyName(String property)
Mark the specified property as one to be disregarded/ignored during testing.
|
<T> VerifierSettings |
addOverrideFactory(String property,
Factory<T> factory)
Register the specified Factory as an override Factory for the specified property.
|
<T,S> VerifierSettings |
addOverridePropertyFactory(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter,
Factory<S> factory)
Register the specified Factory as an override Factory for the specified property.
|
BeanInformationFactory |
getBeanInformationFactory() |
int |
getDefaultIterations() |
FactoryCollection |
getFactoryCollection() |
FactoryLookupStrategy |
getFactoryLookupStrategy() |
RandomValueGenerator |
getRandomValueGenerator() |
<T> VerifierSettings |
registerFactory(Class<T> clazz,
Factory<? extends T> factory)
Register a custom factory for given class
|
<T> VerifierSettings |
registerTypeHierarchyFactory(Class<T> baseType,
Factory<T> factory)
Register factory for an inheritance type hierarchy
|
VerifierSettings |
setBeanInformationFactory(BeanInformationFactory beanInformationFactory) |
VerifierSettings |
setDefaultIterations(int iterations)
Set the number of times a type should be tested by default
|
VerifierSettings |
setFactoryCollection(FactoryCollection factoryCollection) |
VerifierSettings |
setFactoryLookupStrategy(FactoryLookupStrategy factoryLookupStrategy) |
VerifierSettings |
setRandomValueGenerator(RandomValueGenerator randomValueGenerator) |
VerifierSettingsEditor |
suppressWarning(Warning warning) |
RandomValueGenerator getRandomValueGenerator()
VerifierSettings setRandomValueGenerator(RandomValueGenerator randomValueGenerator)
FactoryCollection getFactoryCollection()
VerifierSettings setFactoryCollection(FactoryCollection factoryCollection)
FactoryLookupStrategy getFactoryLookupStrategy()
VerifierSettings setFactoryLookupStrategy(FactoryLookupStrategy factoryLookupStrategy)
BeanInformationFactory getBeanInformationFactory()
VerifierSettings setBeanInformationFactory(BeanInformationFactory beanInformationFactory)
<T> VerifierSettings registerFactory(Class<T> clazz, Factory<? extends T> factory)
<T> VerifierSettings registerTypeHierarchyFactory(Class<T> baseType, Factory<T> factory)
int getDefaultIterations()
VerifierSettings setDefaultIterations(int iterations)
VerifierSettingsEditor suppressWarning(Warning warning)
VerifierSettings addIgnoredPropertyName(String property) throws IllegalArgumentException
IllegalArgumentException<T,S> VerifierSettings addIgnoredProperty(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter) throws IllegalArgumentException
addIgnoredProperty(MyBean::getPropertyValue);
IllegalArgumentException<T> VerifierSettings addOverrideFactory(String property, Factory<T> factory) throws IllegalArgumentException
IllegalArgumentException<T,S> VerifierSettings addOverridePropertyFactory(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter, Factory<S> factory)
addOverridePropertyFactory(MyBean::getPropertyValue, () -> createPropertyValue());
<T,S> VerifierSettings addEqualsInsignificantProperty(String propertyName)
<T,S> VerifierSettings addEqualsInsignificantProperty(com.github.meanbeanlib.mirror.SerializableLambdas.SerializableFunction1<T,S> beanGetter)
addEqualsInsignificantProperty(MyBean::getPropertyValue);
Copyright © 2010–2020 meanbean. All rights reserved.