Commit a1f8252b authored by Hando Lukats's avatar Hando Lukats
Browse files

TEIS-2380 refactor

parent 8fc24224
......@@ -4,7 +4,6 @@ import ee.sm.ti.teis.RiskAssessmentsAppTestBase;
import ee.sm.ti.teis.cache.person.PersonService;
import ee.sm.ti.teis.commongateway.docgen.dto.GeneratedDocumentDto;
import ee.sm.ti.teis.commongateway.riskassessments.riskassessment.dto.RiskAssessmentPdfDto;
import ee.sm.ti.teis.commongateway.riskassessments.riskassessment.dto.RiskStatementAssessmentPdfDto;
import ee.sm.ti.teis.commongateway.riskassessments.riskassessment.request.RiskAssessmentPDFRequest;
import ee.sm.ti.teis.commongateway.riskassessments.riskassessment.response.GetRiskAssessmentPDFResponse;
import ee.sm.ti.teis.commongateway.riskassessments.riskassessment.response.GetRiskAssessmentPDFTestResponse;
......@@ -81,11 +80,6 @@ public class GetRiskAssessmentPdfPublicGwListenerTest extends RiskAssessmentsApp
assertThat(payload.getCategories().get(0).getRiskFactors()).isNotEmpty();
assertThat(payload.getCategories().get(0).getName()).isEqualTo("Täiendavad ohud");
assertThat(payload.getCategories().get(0).getRiskFactors().get(1).getName()).isEqualTo("api tests: risk factor assessment (in_progress)");
RiskStatementAssessmentPdfDto riskStatementAssessment = payload.getCategories().get(0).getRiskFactors().get(1).getRiskStatementAssessments().get(0);
assertThat(riskStatementAssessment.getShortDescription()).isEqualTo("TEST test-brief description");
assertThat(riskStatementAssessment.getDetailedDescription()).isEqualTo("test-detailed description");
assertThat(riskStatementAssessment.getStatus()).isEqualTo("Abinõu on kasutusel");
assertThat(riskStatementAssessment.getRiskIndicators().isHasFiles()).isFalse();
}
@Test
......
......@@ -31,8 +31,7 @@ public class RiskAssessmentPDFComposeService {
private static final String ACTION_NOT_EVALUATED = "Abinõu on hindamata";
private static final String NO_ACTION_NEEDED = "Abinõud ei ole vaja rakendada";
private static final String ADDED_TO_ACTION_PLAN = "Abinõu on lisatud tegevuskavasse";
private final RiskIndicatorValueDataService riskIndicatorValueDataService;
private final RiskIndicatorDataService riskIndicatorDataService;
private final FileReferenceBusinessService fileReferenceBusinessService;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment