use of org.opengrok.indexer.configuration.Project in project OpenGrok by OpenGrok.
the class ProjectHelperTest method testGetRepositories.
/**
* Test of getRepositories method, of class ProjectHelper.
*/
@Test
public void testGetRepositories() {
Set<Project> result = helper.getRepositories();
assertEquals(2, result.size());
for (Project p : result) {
assertTrue(p.getName().startsWith("allowed_"));
}
}
use of org.opengrok.indexer.configuration.Project in project OpenGrok by OpenGrok.
the class ProjectHelperTest method testGetUngroupedRepositories.
/**
* Test of getUngroupedRepositories method, of class ProjectHelper.
*/
@Test
public void testGetUngroupedRepositories() {
Set<Project> result = helper.getUngroupedRepositories();
assertEquals(2, result.size());
for (Project p : result) {
assertTrue(p.getName().startsWith("allowed_"));
}
}
use of org.opengrok.indexer.configuration.Project in project OpenGrok by OpenGrok.
the class ProjectHelperTest method testGetGroupedRepositories.
/**
* Test of getGroupedRepositories method, of class ProjectHelper.
*/
@Test
public void testGetGroupedRepositories() {
Set<Project> result = helper.getGroupedRepositories();
assertEquals(4, result.size());
for (Project p : result) {
assertTrue(p.getName().startsWith("allowed_"));
}
}
use of org.opengrok.indexer.configuration.Project in project OpenGrok by OpenGrok.
the class ProjectHelperTest method testGetAllGrouped.
/**
* Test of getAllGrouped method, of class ProjectHelper.
*/
@Test
public void testGetAllGrouped() {
Set<Project> result = helper.getAllGrouped();
assertEquals(8, result.size());
for (Project p : result) {
assertTrue(p.getName().startsWith("allowed_"));
}
}
use of org.opengrok.indexer.configuration.Project in project OpenGrok by OpenGrok.
the class ProjectHelperTest method testGetUngroupedProjects.
/**
* Test of getUngroupedProjects method, of class ProjectHelper.
*/
@Test
public void testGetUngroupedProjects() {
Set<Project> result = helper.getUngroupedProjects();
assertEquals(2, result.size());
for (Project p : result) {
assertTrue(p.getName().startsWith("allowed_"));
}
}
Aggregations