コード例 #1
0
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportDeleteOnItemResourceIfDeleteIsNotExported() {

    when(invoker.exposesDelete()).thenReturn(false);
    assertThat(information.supports(DELETE, ITEM), is(false));
  }
コード例 #2
0
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportPutOnItemResourceIfSaveIsNotExported() {

    when(invoker.exposesSave()).thenReturn(false);
    assertThat(information.supports(POST, ITEM), is(false));
  }
コード例 #3
0
  /** @see DATAREST-217 */
  @Test
  public void doesNotSupportGetOnItemResourceIfFindOneIsNotExported() {

    when(invoker.exposesFindOne()).thenReturn(false);
    assertThat(information.supports(GET, ITEM), is(false));
  }