use of org.sonarqube.ws.NewCodePeriods.ShowWSResponse in project sonarqube by SonarSource.
the class ShowActionTest method show_inherited_if_branch_not_found.
@Test
public void show_inherited_if_branch_not_found() {
ComponentDto project = componentDb.insertPublicProject();
logInAsProjectScan(project);
tester.insert(project.projectUuid(), NewCodePeriodType.NUMBER_OF_DAYS, "3");
ShowWSResponse response = ws.newRequest().setParam("project", project.getKey()).setParam("branch", "unknown").executeProtobuf(ShowWSResponse.class);
assertResponse(response, project.getKey(), "", NewCodePeriods.NewCodePeriodType.NUMBER_OF_DAYS, "3", true);
}
Aggregations