import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.api.utils.text.JsonWriter;
-import org.sonar.core.timemachine.Periods;
import org.sonar.server.qualitygate.QualityGates;
public class AppAction implements QGateWsAction {
private final QualityGates qualityGates;
- private final Periods periods;
-
- public AppAction(QualityGates qualityGates, Periods periods) {
+ public AppAction(QualityGates qualityGates) {
this.qualityGates = qualityGates;
- this.periods = periods;
}
@Override
new CreateAction(qGates), new CopyAction(qGates), new DestroyAction(qGates), new RenameAction(qGates),
new SetAsDefaultAction(qGates), new UnsetDefaultAction(qGates),
new CreateConditionAction(qGates), new UpdateConditionAction(qGates), new DeleteConditionAction(qGates),
- new SelectAction(qGates), new DeselectAction(qGates), new AppAction(qGates, periods)));
+ new SelectAction(qGates), new DeselectAction(qGates), new AppAction(qGates)));
}
@Test
import org.sonar.db.qualitygate.ProjectQgateAssociationQuery;
import org.sonar.db.qualitygate.QualityGateConditionDto;
import org.sonar.db.qualitygate.QualityGateDto;
-import org.sonar.core.timemachine.Periods;
import org.sonar.server.exceptions.BadRequestException;
import org.sonar.server.qualitygate.QgateProjectFinder;
import org.sonar.server.qualitygate.QgateProjectFinder.Association;
new CreateAction(qGates), new CopyAction(qGates), new DestroyAction(qGates), new RenameAction(qGates),
new SetAsDefaultAction(qGates), new UnsetDefaultAction(qGates),
new CreateConditionAction(qGates), new UpdateConditionAction(qGates), new DeleteConditionAction(qGates),
- new SelectAction(qGates), new DeselectAction(qGates), new AppAction(qGates, mock(Periods.class))));
+ new SelectAction(qGates), new DeselectAction(qGates), new AppAction(qGates)));
}
@Test