Polish
This commit is contained in:
@@ -113,6 +113,10 @@ public abstract class AbstractJsonMarshalTester<T> {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return class used to load relative resources.
|
||||
* @return the resource load class
|
||||
*/
|
||||
protected final Class<?> getResourceLoadClass() {
|
||||
return this.resourceLoadClass;
|
||||
}
|
||||
|
||||
@@ -152,13 +152,14 @@ public class JacksonTester<T> extends AbstractJsonMarshalTester<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new instance of {@link JacksonTester} with the view
|
||||
* that should be used for json serialization/deserialization.
|
||||
* Returns a new instance of {@link JacksonTester} with the view that should be used
|
||||
* for json serialization/deserialization.
|
||||
* @param view the view class
|
||||
* @return the new instance
|
||||
*/
|
||||
public JacksonTester<T> forView(Class<?> view) {
|
||||
return new JacksonTester<T>(this.getResourceLoadClass(), this.getType(), this.objectMapper, view);
|
||||
return new JacksonTester<T>(this.getResourceLoadClass(), this.getType(),
|
||||
this.objectMapper, view);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user