use of io.crnk.test.mock.repository.ProjectRepository.ProjectsLinksInformation in project crnk-framework by crnk-project.
the class InformationClientTest method testLinks.
@Test
public void testLinks() {
QuerySpec querySpec = new QuerySpec(Project.class);
ResourceList<Project> list = projectRepo.findAll(querySpec);
ProjectsLinksInformation lnksInformation = list.getLinks(ProjectsLinksInformation.class);
Assert.assertEquals("testLink", lnksInformation.getLinkValue());
Project project = list.get(0);
ProjectLinks projectLinks = project.getLinks();
Assert.assertNotNull(projectLinks);
Assert.assertEquals("someLinkValue", projectLinks.getValue());
}
Aggregations