use of org.molgenis.data.staticentity.TestEntityStatic in project molgenis by molgenis.
the class DataServiceIT method testFindOneFetchTypedStatic.
@WithMockUser(username = USERNAME_READ)
@Test(groups = "readtest")
public void testFindOneFetchTypedStatic() {
Entity entity = staticEntities.get(0);
TestEntityStatic testEntityStatic = dataService.findOneById(entityTypeStatic.getId(), entity.getIdValue(), new Fetch().field(ATTR_ID), TestEntityStatic.class);
assertNotNull(testEntityStatic);
assertEquals(testEntityStatic.getIdValue(), entity.getIdValue());
}
use of org.molgenis.data.staticentity.TestEntityStatic in project molgenis by molgenis.
the class DataServiceIT method testFindOneQueryTypedStatic.
@WithMockUser(username = USERNAME_READ)
@Test(groups = "readtest")
public void testFindOneQueryTypedStatic() {
Entity entity = staticEntities.get(0);
TestEntityStatic testEntityStatic = dataService.findOne(entityTypeStatic.getId(), new QueryImpl<TestEntityStatic>().eq(ATTR_ID, entity.getIdValue()), TestEntityStatic.class);
assertNotNull(testEntityStatic);
assertEquals(testEntityStatic.getId(), entity.getIdValue());
}
use of org.molgenis.data.staticentity.TestEntityStatic in project molgenis by molgenis.
the class DataServiceIT method testFindOneTypedStatic.
@WithMockUser(username = USERNAME_READ)
@Test(groups = "readtest")
public void testFindOneTypedStatic() {
Entity entity = staticEntities.get(0);
TestEntityStatic testEntityStatic = dataService.findOneById(entityTypeStatic.getId(), entity.getIdValue(), TestEntityStatic.class);
assertNotNull(testEntityStatic);
assertEquals(testEntityStatic.getId(), entity.getIdValue());
}
Aggregations