コード例 #1
0
  private static void assertSaveMethodPresent(Class<?> type, boolean present) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(present));
    assertThat(methods.getSaveMethod(), is(present ? notNullValue() : nullValue()));
  }
コード例 #2
0
  private static void assertSaveMethodOn(Class<?> type, Method method) {

    CrudMethods methods = getMethodsFor(type);

    assertThat(methods.hasSaveMethod(), is(method != null));
    assertThat(methods.getSaveMethod(), is(method));
  }