com.chutneytesting.campaign.api.dto.ScenarioExecutionReportCampaignMapper Maven / Gradle / Ivy
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
package com.chutneytesting.campaign.api.dto;
import com.chutneytesting.server.core.domain.scenario.campaign.ScenarioExecutionCampaign;
public class ScenarioExecutionReportCampaignMapper {
public static ScenarioExecutionReportOutlineDto toDto(ScenarioExecutionCampaign scenarioReport) {
return new ScenarioExecutionReportOutlineDto(
scenarioReport.scenarioId(),
scenarioReport.scenarioName(),
scenarioReport.execution()
);
}
public static ScenarioExecutionCampaign fromDto(ScenarioExecutionReportOutlineDto dto) {
return new ScenarioExecutionCampaign(
dto.getScenarioId(),
dto.getScenarioName(),
dto.getExecution()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy