use of io.crnk.legacy.internal.AnnotatedRelationshipRepositoryAdapter in project crnk-framework by crnk-project.
the class AnnotatedRelationshipRepositoryAdapterTest method onClassWithEmptySetRelationsShouldThrowException.
@Test(expected = RepositoryMethodException.class)
public void onClassWithEmptySetRelationsShouldThrowException() throws Exception {
// GIVEN
RelationshipRepositoryWithEmptySetRelations repo = new RelationshipRepositoryWithEmptySetRelations();
AnnotatedRelationshipRepositoryAdapter<Task, Long, Project, Long> sut = new AnnotatedRelationshipRepositoryAdapter<>(repo, parameterProvider);
// WHEN
sut.setRelations(new Task(), Collections.singleton(1L), "project", queryAdapter);
}
Aggregations