@Test(expected = ODataBadRequestException.class) public void testWriteEntitySet() throws Exception { stubForTesting(getEntity()); getDeleteMethodHandler(getEntityDataModel(), true).handleWrite(getEntity()); }
@Override public ProcessorResult handleWrite(Object entity) throws ODataException { if (ODataUriUtil.isRefPathUri(getoDataUri())) { return processLink((ODataLink) entity); } else { if (entity != null) { throw new ODataBadRequestException("The body of a DELETE request must be empty."); } return processEntity(); } }
DeleteMethodHandler extends WriteMethodHandler { @Override public ProcessorResult handleWrite(Object entity) throws ODataException { if (ODataUriUtil.isRefPathUri(getoDataUri())) { return processLink((ODataLink) entity); } else { if (entity != null) { throw new ODataBadRequestException("The body of a DELETE request must be empty."); } return processEntity(); } } }
DeleteMethodHandler extends WriteMethodHandler { @Override public ProcessorResult handleWrite(Object entity) throws ODataException { if (ODataUriUtil.isRefPathUri(getoDataUri())) { return processLink((ODataLink) entity); } else { if (entity != null) { throw new ODataBadRequestException("The body of a DELETE request must be empty."); } return processEntity(); } } DeleteMethodHandler(ODataRequestContext requestContext, DataSourceFactory dataSourceFactory); }
DeleteMethodHandler extends WriteMethodHandler { @Override public ProcessorResult handleWrite(Object entity) throws ODataException { if (ODataUriUtil.isRefPathUri(getoDataUri())) { return processLink((ODataLink) entity); } else { if (entity != null) { throw new ODataBadRequestException("The body of a DELETE request must be empty."); } return processEntity(); } } DeleteMethodHandler(ODataRequestContext requestContext, DataSourceFactory dataSourceFactory); @Override ProcessorResult handleWrite(Object entity); }
DeleteMethodHandler extends WriteMethodHandler { @Override public ProcessorResult handleWrite(Object entity) throws ODataException { if (ODataUriUtil.isRefPathUri(getoDataUri())) { return processLink((ODataLink) entity); } else { if (entity != null) { throw new ODataBadRequestException("The body of a DELETE request must be empty."); } return processEntity(); } } DeleteMethodHandler(ODataRequestContext requestContext, DataSourceFactory dataSourceFactory); @Override ProcessorResult handleWrite(Object entity);  }