/** @see DATAREST-217 */ @Test public void doesNotSupportDeleteOnItemResourceIfDeleteIsNotExported() { when(invoker.exposesDelete()).thenReturn(false); assertThat(information.supports(DELETE, ITEM), is(false)); }
/** @see DATAREST-217 */ @Test public void doesNotSupportPutOnItemResourceIfSaveIsNotExported() { when(invoker.exposesSave()).thenReturn(false); assertThat(information.supports(POST, ITEM), is(false)); }
/** @see DATAREST-217 */ @Test public void doesNotSupportGetOnItemResourceIfFindOneIsNotExported() { when(invoker.exposesFindOne()).thenReturn(false); assertThat(information.supports(GET, ITEM), is(false)); }