use of com.emc.metalnx.core.domain.entity.DataGridPageContext in project metalnx-web by irods-contrib.
the class TestMetadataCase method assertMetadataSearch.
private void assertMetadataSearch(int expectedNumOfFiles, int expectedNumOfMatchesByFile) throws DataGridConnectionRefusedException {
objs = metadataService.findByMetadata(search, new DataGridPageContext(), 1, 100);
assertTrue(objs.size() >= expectedNumOfFiles);
for (DataGridCollectionAndDataObject obj : objs) {
assertTrue(obj.isVisibleToCurrentUser());
assertFalse(obj.isCollection());
assertEquals(expectedNumOfMatchesByFile, obj.getNumberOfMatches());
}
}
Aggregations