use of io.crnk.test.mock.repository.ProjectRepository.ProjectsMetaInformation in project crnk-framework by crnk-project.
the class InformationClientTest method testMeta.
@Test
public void testMeta() {
QuerySpec querySpec = new QuerySpec(Project.class);
ResourceList<Project> list = projectRepo.findAll(querySpec);
ProjectsMetaInformation metaInformation = list.getMeta(ProjectsMetaInformation.class);
Assert.assertEquals("testMeta", metaInformation.getMetaValue());
Project project = list.get(0);
ProjectMeta projectMeta = project.getMeta();
Assert.assertNotNull(projectMeta);
Assert.assertEquals("someMetaValue", projectMeta.getValue());
}
Aggregations