@Test(expected = IllegalArgumentException.class) public void constructorWhenValueIsNullThenThrowIllegalArgumentException() { new ClientAuthenticationMethod(null); }
private ClientAuthenticationMethod toClientAuthenticationMethod(OidcClient oidcClient) { ClientAuthenticationMethod clientAuthenticationMethod; String oidcClientClientAuthenticationMethod = oidcClient.getClientAuthenticationMethod(); switch (oidcClientClientAuthenticationMethod) { case "basic": clientAuthenticationMethod = ClientAuthenticationMethod.BASIC; break; case "post": clientAuthenticationMethod = ClientAuthenticationMethod.POST; break; default: clientAuthenticationMethod = new ClientAuthenticationMethod(oidcClientClientAuthenticationMethod); break; } return clientAuthenticationMethod; }