ws = new WsActionTester(new ProjectStatusAction(dbClient, new ComponentFinder(dbClient), userSession));
}
@Test
public void json_example() throws IOException {
userSession.login("john").setGlobalPermissions(SYSTEM_ADMIN);
<BUG>ComponentDto project = newProjectDto("project-uuid");

dbClient.componentDao().insert(dbSession, project);</BUG>
SnapshotDto snapshot = dbClient.snapshotDao().insert(dbSession, newSnapshotForProject(project)
.setPeriodMode(1, "last_period")

ws = new WsActionTester(new ProjectStatusAction(dbClient, new ComponentFinder(dbClient), userSession));
}
@Test
public void json_example() throws IOException {
userSession.login("john").setGlobalPermissions(SYSTEM_ADMIN);
ComponentDto project = componentDb.insertComponent(newProjectDto("project-uuid"));
SnapshotDto snapshot = dbClient.snapshotDao().insert(dbSession, newSnapshotForProject(project)
.setPeriodMode(1, "last_period")
