You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public boolean isMatching() {
return transformedTemplate.equals(transformedContent);
}
which is used to assert SecHub reports. This will only work if both strings are exactly the same.
Wanted
A more sophisticated solution which does not depend on the equality of two strings.
Solution
Make the comparison more sophisticated by parsing both strings into the object using object mapper.
Call the equals method on the objects to compare the result.
(Make sure equals is up-to-date)
The text was updated successfully, but these errors were encountered:
Situation
Inside the
TestTemplateSupport
there is a methodwhich is used to assert SecHub reports. This will only work if both strings are exactly the same.
Wanted
A more sophisticated solution which does not depend on the equality of two strings.
Solution
Make the comparison more sophisticated by parsing both strings into the object using object mapper.
Call the
equals
method on the objects to compare the result.(Make sure equals is up-to-date)
The text was updated successfully, but these errors were encountered: