qr[1] = new MetaDataQuery();
qr[1].attribute = AssetItem.SOURCE_PROPERTY_NAME;
qr[1].valueList = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRoot.numberwan*";
List<MetaDataQuery> metadata = Arrays.asList( qr );
QueryMetadataPageRequest request = new QueryMetadataPageRequest( metadata,
DateUtils.parseDate( "10-Jul-1974",
new DateFormatsImpl() ),
null,
null,
null,
false,
0,
PAGE_SIZE );
PageResponse<QueryPageRow> response;
response = serviceImplementation.queryMetaData( request );
assertNotNull( response );
assertNotNull( response.getPageRowList() );
assertEquals( 0,
response.getStartRowIndex() );
assertEquals( PAGE_SIZE,
response.getPageRowList().size() );
assertEquals( false,
response.isTotalRowSizeExact() );
assertFalse( response.isLastPage() );
request.setStartRowIndex( PAGE_SIZE );
response = serviceImplementation.queryMetaData( request );
assertNotNull( response );
assertNotNull( response.getPageRowList() );
assertEquals( PAGE_SIZE,