|
|
|
|
@ -121,6 +121,23 @@ class JacksonTests {
@@ -121,6 +121,23 @@ class JacksonTests {
|
|
|
|
|
assertThat(outputs).usingRecursiveComparison().isEqualTo(credProps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void readAuthenticationExtensionsClientOutputsWhenAppId() { |
|
|
|
|
String json = """ |
|
|
|
|
{ |
|
|
|
|
"appid": false, |
|
|
|
|
"credProps": { |
|
|
|
|
"rk": false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
"""; |
|
|
|
|
CredentialPropertiesOutput credProps = new CredentialPropertiesOutput(false); |
|
|
|
|
|
|
|
|
|
AuthenticationExtensionsClientOutputs outputs = this.mapper.readValue(json, |
|
|
|
|
AuthenticationExtensionsClientOutputs.class); |
|
|
|
|
assertThat(outputs.getOutputs()).usingRecursiveFieldByFieldElementComparator().contains(credProps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void readAuthenticationExtensionsClientOutputsWhenUnknownExtension() { |
|
|
|
|
String json = """ |
|
|
|
|
|