Skip to content

* Extracted constants for schema validation message templates.

3a7cfdd
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add Schema validation to transformJsonToXml developer tool #1216

* Extracted constants for schema validation message templates.
3a7cfdd
Select commit
Loading
Failed to load commit list.
GitHub Actions / pitest completed May 22, 2025 in 1s

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

See https://pitest.org

Annotations

Check warning on line 83 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 70 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 82 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 81 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 68 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 92 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 60 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 103 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 101 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 57 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XmlSchemaValidator.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 71 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/TransformJsonToXml.java

See this annotation in the file changed.

@github-actions 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)

Check warning on line 18 in service/src/main/java/uk/nhs/adaptors/gp2gp/transformJsonToXmlTool/XsdErrorHandler.java

See this annotation in the file changed.

@github-actions 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)