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 testEqualsDifferentClass.
@Test
void testEqualsDifferentClass() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
FormattedErrorCode o2 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some 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 testToString.
@Test
void testToString() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
Truth.assertThat(o1.toString()).contains(ErrorCode.UNEXPECTED_ERROR.toString());
Truth.assertThat(o1.toString()).contains("Some Message");
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testHashCode.
@Test
void testHashCode() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
FormattedErrorCode o2 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
Truth.assertThat(o1.hashCode()).isEqualTo(o2.hashCode());
}
use of gov.cms.qpp.conversion.model.error.FormattedErrorCode in project qpp-conversion-tool by CMSgov.
the class FormattedErrorCodeTest method testEqualsNull.
@Test
void testEqualsNull() {
FormattedErrorCode o1 = new FormattedErrorCode(ErrorCode.UNEXPECTED_ERROR, "Some Message");
Truth.assertThat(o1).isNotEqualTo(null);
}
Aggregations