Raphaël GLAVIEUX
07/08/2025, 9:06 AM*import* com.fasterxml.jackson.annotation.JsonProperty;
*import* com.github.tomakehurst.wiremock.matching.MatchResult;
*import* com.github.tomakehurst.wiremock.matching.StringValuePattern;
import
*static* com.github.tomakehurst.wiremock.common.Strings._normalisedLevenshteinDistance_;
public
*class* EqualVinOutInAnyOrderPattern *extends* StringValuePattern {
*public* EqualVinOutInAnyOrderPattern(@JsonProperty("equalVinOutInAnyOrder") String expectedValue) {
*super*(expectedValue);
}
@Override
*public* MatchResult match(String actual) {
return
*new* MatchResult() {
...
}
}
This class is now failing when the constructor calls the getName()
When I debug I well see a this.getClass().getDeclaredConstructors()[0].getParameterAnnotations()[0][0] instanceof JsonProperty
with the correct value, but the execution still goes to the throw Exception.
Does anybody have the same issue or have an idea of what happens ?Lee Turner
07/30/2025, 12:00 PM