OAuthAdapterTest.java revision c951f676fd0230347f0e66f8c6d090d0d46ae650
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * Copyright 2013 ForgeRock, Inc.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * The contents of this file are subject to the terms of the Common Development and
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * Distribution License (the License). You may not use this file except in compliance with the
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * specific language governing permission and limitations under the License.
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * When distributing Covered Software, include this CDDL Header Notice in each file and include
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * Header, with the fields enclosed by brackets [] replaced by your own identifying
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozek * information: "Portions copyright [year] [name of copyright owner]".
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozekimport com.sun.identity.sm.ldap.api.fields.OAuthTokenField;
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozekimport com.sun.identity.sm.ldap.api.tokens.Token;
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozekimport com.sun.identity.sm.ldap.api.tokens.TokenIdFactory;
1746e8b8399da2a7a8da4aace186f66055ccfec1Jakub Hrozekimport com.sun.identity.sm.ldap.utils.JSONSerialisation;
aea1d5c0ca9bb1470759b024c8b97b6c1f577193Pavel Březinaimport com.sun.identity.sm.ldap.utils.KeyConversion;
public class OAuthAdapterTest {
@Test
public void shouldSerialiseSimpleString() {
@Test
public void shouldSerialiseCollectionOfStrings() {
public void shouldNotAllowASingleDate() {
@Test
public void shouldSerialiseACollectionOfTimestamps() {
@Test
public void shouldDeserialiseSerialisedToken() {
public void shouldVerifyThatObjectIsAMap() {
public void shouldNotDeserialiseATokenWhichDoesntContainAMap() {