Class AbstractJsonMarshalTester.FieldInitializer<M>
- java.lang.Object
- org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer<M>
- Type Parameters:
M- the marshaller type
- Enclosing class:
- AbstractJsonMarshalTester<T>
protected abstract static class AbstractJsonMarshalTester.FieldInitializer<M> extends Object
Utility class used to support field initialization. Used by subclasses to supportinitFields.
Constructor Summary
Constructors Modifier Constructor Description protectedFieldInitializer(Class<? extends AbstractJsonMarshalTester> testerClass)
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractJsonMarshalTester<Object>createTester(Class<?> resourceLoadClass, org.springframework.core.ResolvableType type, M marshaller)protected voiddoWithField(Field field, Object test, org.springframework.beans.factory.ObjectFactory<M> marshaller)voidinitFields(Object testInstance, M marshaller)voidinitFields(Object testInstance, org.springframework.beans.factory.ObjectFactory<M> marshaller)
Constructor Detail
FieldInitializer
protected FieldInitializer(Class<? extends AbstractJsonMarshalTester> testerClass)
Method Detail
initFields
public void initFields(Object testInstance, M marshaller)
initFields
public void initFields(Object testInstance, org.springframework.beans.factory.ObjectFactory<M> marshaller)
doWithField
protected void doWithField(Field field, Object test, org.springframework.beans.factory.ObjectFactory<M> marshaller)
createTester
protected abstract AbstractJsonMarshalTester<Object> createTester(Class<?> resourceLoadClass, org.springframework.core.ResolvableType type, M marshaller)