use of jakarta.ws.rs.core.Response in project OpenGrok by OpenGrok.
the class ProjectsControllerTest method testSetIndexed.
@Test
void testSetIndexed() {
String project = "git";
addProject(project);
assertEquals(1, env.getProjectList().size());
env.getProjects().get(project).setIndexed(false);
assertFalse(env.getProjects().get(project).isIndexed());
Response response = target("projects").path(project).path("property/indexed").request().put(Entity.text(Boolean.TRUE.toString()));
assertEquals(response.getStatus(), Response.Status.NO_CONTENT.getStatusCode());
assertTrue(env.getProjects().get(project).isIndexed());
}
Aggregations