Skip to content

Commit

Permalink
MAT-6224 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Feb 26, 2024
1 parent 91e0e56 commit 0182e66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/gov/cms/madie/services/HqmfServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import gov.cms.madie.models.common.ModelType;
import gov.cms.madie.models.measure.QdmMeasure;
import jakarta.xml.bind.JAXBException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand All @@ -19,6 +18,7 @@
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
Expand Down Expand Up @@ -64,7 +64,7 @@ void generateHqmfWhenSimpleXmlGenerationFailed() throws Exception {
.when(simpleXmlService)
.measureToSimpleXml(any(QdmMeasure.class));
Exception ex =
Assertions.assertThrows(
assertThrows(
PackagingException.class,
() -> hqmfService.generateHqmf(measure),
"Exception occurred");
Expand All @@ -80,7 +80,7 @@ void generateHqmfWhenHqmfGenerationFailed() throws Exception {
when(factory.getHQMFGenerator()).thenReturn(generator);
doThrow(new Exception(message)).when(generator).generate(any(MeasureExport.class));
Exception ex =
Assertions.assertThrows(
assertThrows(
PackagingException.class,
() -> hqmfService.generateHqmf(measure),
"Exception occurred");
Expand Down

0 comments on commit 0182e66

Please sign in to comment.