use of org.forgerock.openam.cts.api.fields.OAuthTokenField in project OpenAM by OpenRock.
the class OAuthAdapterTest method shouldNotAllowASingleDate.
@Test(expectedExceptions = IllegalStateException.class)
public void shouldNotAllowASingleDate() {
// Given
OAuthAdapter adapter = generateOAuthAdapter();
String text = "1234567890";
OAuthTokenField field = OAuthTokenField.EXPIRY_TIME;
Map<String, Object> values = new HashMap<String, Object>();
values.put(field.getOAuthField(), text);
JsonValue jsonValue = makeDefaultJsonValue(values);
// When
adapter.toToken(jsonValue);
}
Aggregations