assertTrue( response.isLastPage() );
}
@Test
public void testQueryFullTextFullResultsWithAnalystPermission() throws Exception {
CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
String categoryName = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCategory";
String categoryDescription = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCategoryDescription";
CategoryItem cat = rootCategory.addCategory( categoryName,
categoryDescription );
String subCategory1Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCat1";
cat.addCategory( subCategory1Name,
"yeah" );
String subCategory2Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCat2";
cat.addCategory( subCategory2Name,
"yeah" );
logoutAs( ADMIN_USERNAME );
final String USERNAME = "queryAndFindUser";
loginAs( USERNAME );