Add Schema validation to transformJsonToXml developer tool
#1216
Pitest mutation testing feedback
- Surviving mutants in this change: 16
- Killed mutants in this change: 0
| class | surviving | killed |
|---|---|---|
🧟uk.nhs.adaptors.gp2gp.transformJsonToXmlTool.XmlSchemaValidator |
12 | 0 |
🧟uk.nhs.adaptors.gp2gp.transformJsonToXmlTool.XsdErrorHandler |
2 | 0 |
🧟uk.nhs.adaptors.gp2gp.transformJsonToXmlTool.TransformJsonToXml |
2 | 0 |
Annotations
github-actions / pitest
A change can be made to line 83 without causing a test to fail
removed call to java/io/BufferedWriter::newLine (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
A change can be made to line 70 without causing a test to fail
removed call to writeValidationExceptionsToFile (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
A change can be made to line 82 without causing a test to fail
removed call to java/io/BufferedWriter::write (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
A change can be made to line 81 without causing a test to fail
removed last varargs argument in call to format (no tests cover this line VarargsMutator)
github-actions / pitest
2 different changes can be made to line 68 without causing a test to fail
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)
removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
github-actions / pitest
2 different changes can be made to line 92 without causing a test to fail
removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)
github-actions / pitest
A change can be made to line 60 without causing a test to fail
removed call to writeValidationExceptionsToFile (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
A change can be made to line 103 without causing a test to fail
replaced return value with null for getXmlValidator (no tests cover this line NullReturnValsMutator)
github-actions / pitest
A change can be made to line 101 without causing a test to fail
removed call to javax/xml/validation/Validator::setErrorHandler (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
A change can be made to line 57 without causing a test to fail
removed call to javax/xml/validation/Validator::validate (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
2 different changes can be made to a lambda on line 71 without causing a test to fail
swapped parameters 1 and 2 in call to validateOutputToXmlSchema in 1st lambda in run (no tests cover this line ParamSwapMutator)
removed call to uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator::validateOutputToXmlSchema in 1st lambda in run (no tests cover this line VoidMethodCallMutator)
github-actions / pitest
2 different changes can be made to line 18 without causing a test to fail
replaced boolean return with false for isValid (no tests cover this line BooleanFalseReturnValsMutator)
replaced boolean return with true for isValid (no tests cover this line BooleanTrueReturnValsMutator)