Skip to content

Commit

Permalink
Fixed incorrect check for JSON in TestParseShadow
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed Feb 29, 2024
1 parent 730bdb5 commit 9a59449
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ private void assertJaxb(ShadowType shadow, boolean isObject) throws SchemaExcept

@Override
protected void assertSerializedObject(String serialized) {
if (!serialized.startsWith("<shadow") && !serialized.startsWith("<dummy") && !serialized.startsWith("<user")) {
fail("Wrong start of serialized value, was:\n"+serialized);
if (PrismContext.LANG_XML.equals(language)) {
if (!serialized.startsWith("<shadow") && !serialized.startsWith("<dummy") && !serialized.startsWith("<user")) {
fail("Wrong start of serialized value, was:\n" + serialized);
}
}
}
}

0 comments on commit 9a59449

Please sign in to comment.