use of com.google.gerrit.extensions.common.ProjectInfo in project gerrit by GerritCodeReview.
the class AbstractQueryProjectsTest method asAnonymous.
@Test
public void asAnonymous() throws Exception {
ProjectInfo project = createProjectRestrictedToRegisteredUsers(name("project"));
setAnonymous();
assertQuery("name:" + project.name);
}
use of com.google.gerrit.extensions.common.ProjectInfo in project gerrit by GerritCodeReview.
the class AbstractQueryProjectsTest method format.
protected String format(Iterable<ProjectInfo> projects) {
StringBuilder b = new StringBuilder();
b.append("[");
Iterator<ProjectInfo> it = projects.iterator();
while (it.hasNext()) {
ProjectInfo p = it.next();
b.append("{").append(p.id).append(", ").append("name=").append(p.name).append(", ").append("parent=").append(p.parent).append(", ").append("description=").append(p.description).append("}");
if (it.hasNext()) {
b.append(", ");
}
}
b.append("]");
return b.toString();
}
use of com.google.gerrit.extensions.common.ProjectInfo in project gerrit by GerritCodeReview.
the class AbstractQueryProjectsTest method createProjectWithState.
protected ProjectInfo createProjectWithState(String name, ProjectState state) throws Exception {
ProjectInfo info = createProject(name);
ConfigInput config = new ConfigInput();
config.state = state;
gApi.projects().name(info.name).config(config);
return info;
}
Aggregations