SEC-1753: Cater for missing DiscoveryInformation object in OpenID4JavaConsumer.endConsumption.
This commit is contained in:
@@ -189,6 +189,11 @@ public class OpenID4JavaConsumerTests {
|
||||
consumer.fetchAxAttributes(msg, attributes);
|
||||
}
|
||||
|
||||
@Test(expected=OpenIDConsumerException.class)
|
||||
public void missingDiscoveryInformationThrowsException() throws Exception {
|
||||
OpenID4JavaConsumer consumer = new OpenID4JavaConsumer(new NullAxFetchListFactory());
|
||||
consumer.endConsumption(new MockHttpServletRequest());
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user