use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class QualityMeasureSectionValidatorTest method duplicateEcqMeasureLevelUp.
@Test
void duplicateEcqMeasureLevelUp() {
String xpath = manipulatorHandler.getCannedPath(MarkupManipulationHandler.CannedPath.ECQM_PARENT);
List<Detail> errorDetails = manipulatorHandler.executeScenario(xpath, false);
assertThat(errorDetails).comparingElementsUsing(DetailsErrorEquals.INSTANCE).contains(new FormattedErrorCode(ErrorCode.MEASURE_GUID_MISSING, ErrorCode.MEASURE_GUID_MISSING.getMessage()));
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testGetErrorCode.
@Test
void testGetErrorCode() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
Truth.assertThat(o1.getErrorCode()).isEqualTo(ErrorCode.UNEXPECTED_ERROR);
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testEqualsSelf.
@Test
void testEqualsSelf() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
FormattedErrorCode o2 = o1;
Truth.assertThat(o1).isEqualTo(o2);
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testEqualsDifferentMessage.
@Test
void testEqualsDifferentMessage() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
FormattedErrorCode o2 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Other Message");
Truth.assertThat(o1).isNotEqualTo(o2);
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testEquals.
@Test
void testEquals() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
FormattedErrorCode o2 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
Truth.assertThat(o1).isEqualTo(o2);
}
Aggregations