类 AbstractJsonMarshalTester.FieldInitializer<M>
- java.lang.Object
- org.springframework.boot.test.json.AbstractJsonMarshalTester.FieldInitializer<M>
- 类型参数:
M
- The marshaller type
protected abstract static class AbstractJsonMarshalTester.FieldInitializer<M> extends Object
Utility class used to support field initialization. Used by subclasses to supportinitFields
.
构造器概要
构造器 限定符 构造器 说明 protected
FieldInitializer(Class<? extends AbstractJsonMarshalTester> testerClass)
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract AbstractJsonMarshalTester<Object>
createTester(Class<?> resourceLoadClass, org.springframework.core.ResolvableType type, M marshaller)
protected void
doWithField(Field field, Object test, org.springframework.beans.factory.ObjectFactory<M> marshaller)
void
initFields(Object testInstance, M marshaller)
void
initFields(Object testInstance, org.springframework.beans.factory.ObjectFactory<M> marshaller)
构造器详细资料
FieldInitializer
protected FieldInitializer(Class<? extends AbstractJsonMarshalTester> testerClass)
方法详细资料
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)