abstract class AbstractBodyReaderTest {
- protected final static ControllerContext controllerContext = ControllerContext.getInstance();
+ protected final static ControllerContext CONTROLLER_CONTEXT = ControllerContext.getInstance();
protected final MediaType mediaType;
- protected final static DOMMountPointServiceHandler mountPointServiceHandler = mock(
+ protected final static DOMMountPointServiceHandler MOUNT_POINT_SERVICE_HANDLER = mock(
DOMMountPointServiceHandler.class);
AbstractBodyReaderTest() throws NoSuchFieldException, IllegalAccessException {
final Field mountPointServiceHandlerField = RestConnectorProvider.class.
getDeclaredField("mountPointServiceHandler");
mountPointServiceHandlerField.setAccessible(true);
- mountPointServiceHandlerField.set(RestConnectorProvider.class, mountPointServiceHandler);
+ mountPointServiceHandlerField.set(RestConnectorProvider.class, MOUNT_POINT_SERVICE_HANDLER);
}
protected abstract MediaType getMediaType();
normalizedNodeProvider.setRequest(request);
}
+ protected static void checkMountPointNormalizedNodeContext(
+ final NormalizedNodeContext nnContext) {
+ checkNormalizedNodeContext(nnContext);
+ assertNotNull(nnContext.getInstanceIdentifierContext().getMountPoint());
+ }
+
protected static void checkNormalizedNodeContext(
final NormalizedNodeContext nnContext) {
assertNotNull(nnContext.getData());