public final class MappingTestHelper extends Object implements BuilderWithMapper, BuilderWithSourceClass
| Modifier and Type | Method and Description |
|---|---|
static BuilderWithMapper |
assertThatMapper(Object mapper)
Sets the mapper that will be tested.
|
BuilderWithSourceClass |
canMap(Class<?> sourceClass)
Sets the source class that will be mapped by the mapper.
|
BuilderWithSourceClass |
ignoringProperties(String... missingProperties) |
void |
into(Class<?> destinationClass)
Tests that the mapper under test can map the source class into the destination class.
|
BuilderWithSourceClass |
withListMode(ListMode listMode) |
BuilderWithSourceClass |
withMaxRecursionDepth(int maxRecursionDepth) |
BuilderWithSourceClass |
withValueProviders(Supplier<ValueProvider[]> valueProvidersSupplier) |
public BuilderWithSourceClass canMap(Class<?> sourceClass)
canMap in interface BuilderWithMappersourceClass - The source class.public BuilderWithSourceClass ignoringProperties(String... missingProperties)
ignoringProperties in interface BuilderWithSourceClasspublic BuilderWithSourceClass withListMode(ListMode listMode)
withListMode in interface BuilderWithSourceClasspublic BuilderWithSourceClass withMaxRecursionDepth(int maxRecursionDepth)
withMaxRecursionDepth in interface BuilderWithSourceClasspublic BuilderWithSourceClass withValueProviders(Supplier<ValueProvider[]> valueProvidersSupplier)
withValueProviders in interface BuilderWithSourceClasspublic void into(Class<?> destinationClass) throws ReflectiveOperationException
into in interface FinalBuilderdestinationClass - The class to map into.ReflectiveOperationException - if an error occurs related to reflectionpublic static BuilderWithMapper assertThatMapper(Object mapper)
mapper - The mapper to test.Copyright © 2018. All rights reserved.