use of io.crnk.legacy.internal.AnnotatedResourceRepositoryAdapter in project crnk-framework by crnk-project.
the class AnnotatedResourceRepositoryAdapterTest method onClassWithoutSaveShouldThrowException.
@Test(expected = RepositoryAnnotationNotFoundException.class)
public void onClassWithoutSaveShouldThrowException() throws Exception {
// GIVEN
ResourceRepositoryWithoutAnyMethods repo = new ResourceRepositoryWithoutAnyMethods();
AnnotatedResourceRepositoryAdapter<Project, Long> sut = new AnnotatedResourceRepositoryAdapter<>(repo, parameterProvider);
// WHEN
sut.save(new Project());
}
Aggregations