SEC-1753: Cater for missing DiscoveryInformation object in OpenID4JavaConsumer.endConsumption.

This commit is contained in:
Luke Taylor
2011-07-13 22:29:47 +01:00
parent 700fa9e0b6
commit 89fa771093
2 changed files with 10 additions and 0 deletions

View File

@@ -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