Make WebAuthenticationDetails constructor public
Closes gh-10564
This commit is contained in:
committed by
Josh Cummings
parent
c6b185465d
commit
0fb6840db3
@@ -64,6 +64,13 @@ public class WebAuthenticationDetailsMixinTests extends AbstractMixinTests {
|
||||
JSONAssert.assertEquals(AUTHENTICATION_DETAILS_JSON, actualJson, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void webAuthenticationDetailsJackson2SerializeTest() throws JsonProcessingException, JSONException {
|
||||
WebAuthenticationDetails details = new WebAuthenticationDetails("/localhost", "1");
|
||||
String actualJson = this.mapper.writeValueAsString(details);
|
||||
JSONAssert.assertEquals(AUTHENTICATION_DETAILS_JSON, actualJson, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void webAuthenticationDetailsDeserializeTest() throws IOException {
|
||||
WebAuthenticationDetails details = this.mapper.readValue(AUTHENTICATION_DETAILS_JSON,
|
||||
|
||||
Reference in New Issue
Block a user