use of ubic.gemma.web.services.rest.util.ResponseDataObject in project Gemma by PavlidisLab.
the class DatasetsRestTest method testAll.
@Test
public void testAll() {
ResponseDataObject response = datasetsWebService.all(DatasetFilterArg.valueOf(""), IntArg.valueOf("5"), IntArg.valueOf("5"), SortArg.valueOf("+id"), new MockHttpServletResponse());
assertNotNull(response.getData());
assertTrue(response.getData() instanceof Collection<?>);
assertEquals(5, ((Collection) response.getData()).size());
assertTrue(((Collection) response.getData()).iterator().next() instanceof ExpressionExperimentValueObject);
}
use of ubic.gemma.web.services.rest.util.ResponseDataObject in project Gemma by PavlidisLab.
the class DatasetsRestTest method testSome.
@Test
public void testSome() {
ResponseDataObject response = datasetsWebService.datasets(ArrayDatasetArg.valueOf(DatasetsRestTest.ees.get(0).getShortName() + ", BAD_NAME, " + DatasetsRestTest.ees.get(2).getShortName()), DatasetFilterArg.valueOf(""), IntArg.valueOf("0"), IntArg.valueOf("10"), SortArg.valueOf("+id"), new MockHttpServletResponse());
assertNotNull(response.getData());
assertTrue(response.getData() instanceof Collection<?>);
assertEquals(2, ((Collection) response.getData()).size());
assertTrue(((Collection) response.getData()).iterator().next() instanceof ExpressionExperimentValueObject);
}
Aggregations