@Test public void testThrowsNotImplementedOnDelete() { final ODataJPAProcessorException act = assertThrows(ODataJPAProcessorException.class, () -> cut.deleteEntity(null, null)); assertEquals(HttpStatusCode.NOT_IMPLEMENTED.getStatusCode(), act.getStatusCode()); }
@Override public void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em) throws ODataJPAProcessException { throw new ODataJPAProcessorException(ODataJPAProcessorException.MessageKeys.NOT_SUPPORTED_DELETE, HttpStatusCode.NOT_IMPLEMENTED); }
JPAAbstractCUDRequestHandler implements JPACUDRequestHandler { @Override public void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em) throws ODataJPAProcessException { throw new ODataJPAProcessorException(ODataJPAProcessorException.MessageKeys.NOT_SUPPORTED_DELETE, HttpStatusCode.NOT_IMPLEMENTED); } }
JPAAbstractCUDRequestHandler implements JPACUDRequestHandler { @Override public void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em) throws ODataJPAProcessException { throw new ODataJPAProcessorException(ODataJPAProcessorException.MessageKeys.NOT_SUPPORTED_DELETE, HttpStatusCode.NOT_IMPLEMENTED); }  }
JPAAbstractCUDRequestHandler implements JPACUDRequestHandler { @Override public void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em) throws ODataJPAProcessException { throw new ODataJPAProcessorException(ODataJPAProcessorException.MessageKeys.NOT_SUPPORTED_DELETE, HttpStatusCode.NOT_IMPLEMENTED); }  @Override void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em); @Override Object createEntity(final JPARequestEntity requestEntity, final EntityManager em); @Override JPAUpdateResult updateEntity(final JPARequestEntity requestEntity, final EntityManager em,
      final HttpMethod httpMethod); @Override void validateChanges(final EntityManager em); }
JPAAbstractCUDRequestHandler implements JPACUDRequestHandler { @Override public void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em) throws ODataJPAProcessException { throw new ODataJPAProcessorException(ODataJPAProcessorException.MessageKeys.NOT_SUPPORTED_DELETE, HttpStatusCode.NOT_IMPLEMENTED); }  @Override void deleteEntity(final JPARequestEntity requestEntity, final EntityManager em); @Override Object createEntity(final JPARequestEntity requestEntity, final EntityManager em); @Override JPAUpdateResult updateEntity(final JPARequestEntity requestEntity, final EntityManager em,
      final HttpMethod httpMethod); @Override void validateChanges(final EntityManager em);  }