OAuthAdapterTest.java revision b334b83b7ac2d9a8c60d935cad0365506f13333b
/**
* Copyright 2013 ForgeRock, AS.
*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*/
/**
* @author robert.wapshott@forgerock.com
*/
public class OAuthAdapterTest {
@Test
public void shouldSerialiseSimpleString() {
// Given
// When
// Then
}
@Test
public void shouldSerialiseCollectionOfStrings() {
// Given
// When
// Then
}
public void shouldNotAllowASingleDate() {
// Given
// When
}
@Test
public void shouldSerialiseACollectionOfTimestamps() {
// Given
// When
// Then
// The result timezone is set to local time.
// Convert this timestamp to a known timezone.
// Wed, 05 Jun 2013 10:48:41 BST
}
@Test
public void shouldDeserialiseSerialisedToken() {
// Given
// Populate a map for serialisation.
//Map<String, Object> map = new HashMap<String, Object>();
//map.put(OAuthAdapter.VALUE, values);
// Set the serialised binary data
// When
// Then
}
public void shouldVerifyThatObjectIsAMap() {
// Given
}
public void shouldNotDeserialiseATokenWhichDoesntContainAMap() {
// Given
}
/**
* @return Makes a standard OAuthAdapter with real dependencies.
*/
private OAuthAdapter generateOAuthAdapter() {
}
/**
* @param values Generate a JsonValue based on the values in this map.
* @return A non null JsonValue.
*/
}
}