// Path: friendly-id/src/main/java/com/devskiller/friendly_id/FriendlyId.java
// public class FriendlyId {
// 
// 	/**
// 	 * Create FriendlyId id
// 	 *
// 	 * @return Friendly Id encoded UUID
// 	 */
// 	public static String createFriendlyId() {
// 		return Url62.encode(UUID.randomUUID());
// 	}
// 
// 	/**
// 	 * Encode UUID to FriendlyId id
// 	 *
// 	 * @param uuid UUID to be encoded
// 	 * @return Friendly Id encoded UUID
// 	 */
// 	public static String toFriendlyId(UUID uuid) {
// 		return Url62.encode(uuid);
// 	}
// 
// 	/**
// 	 * Decode Friendly Id to UUID
// 	 *
// 	 * @param friendlyId encoded UUID
// 	 * @return decoded UUID
// 	 */
// 	public static UUID toUuid(String friendlyId) {
// 		return Url62.decode(friendlyId);
// 	}
// 
// }
// 
// Path: friendly-id-jackson-datatype/src/test/java/com/devskiller/friendly_id/spring/ObjectMapperConfiguration.java
// protected static ObjectMapper mapper(Module... modules) {
// 	ObjectMapper mapper = new ObjectMapper();
// 	mapper.registerModule(new FriendlyIdModule());
// 	mapper.registerModules(modules);
// 	return mapper;
// }


import java.util.UUID;
import org.junit.Test;
import com.devskiller.friendly_id.FriendlyId;
import static com.devskiller.friendly_id.spring.ObjectMapperConfiguration.mapper;
import static org.assertj.core.api.Assertions.assertThat;
package com.devskiller.friendly_id.spring;





public class FriendlyIdDeserializerTest {

	@Test
	public void shouldSerializeFriendlyId() throws Exception {
		UUID uuid = UUID.randomUUID();
		String json = mapper().writeValueAsString(uuid);
		System.out.println(json);
// Path: friendly-id/src/main/java/com/devskiller/friendly_id/FriendlyId.java
// public class FriendlyId {
// 
// 	/**
// 	 * Create FriendlyId id
// 	 *
// 	 * @return Friendly Id encoded UUID
// 	 */
// 	public static String createFriendlyId() {
// 		return Url62.encode(UUID.randomUUID());
// 	}
// 
// 	/**
// 	 * Encode UUID to FriendlyId id
// 	 *
// 	 * @param uuid UUID to be encoded
// 	 * @return Friendly Id encoded UUID
// 	 */
// 	public static String toFriendlyId(UUID uuid) {
// 		return Url62.encode(uuid);
// 	}
// 
// 	/**
// 	 * Decode Friendly Id to UUID
// 	 *
// 	 * @param friendlyId encoded UUID
// 	 * @return decoded UUID
// 	 */
// 	public static UUID toUuid(String friendlyId) {
// 		return Url62.decode(friendlyId);
// 	}
// 
// }
// 
// Path: friendly-id-jackson-datatype/src/test/java/com/devskiller/friendly_id/spring/ObjectMapperConfiguration.java
// protected static ObjectMapper mapper(Module... modules) {
// 	ObjectMapper mapper = new ObjectMapper();
// 	mapper.registerModule(new FriendlyIdModule());
// 	mapper.registerModules(modules);
// 	return mapper;
// }


// Path: friendly-id-jackson-datatype/src/test/java/com/devskiller/friendly_id/spring/FriendlyIdDeserializerTest.java
import java.util.UUID;
import org.junit.Test;
import com.devskiller.friendly_id.FriendlyId;
import static com.devskiller.friendly_id.spring.ObjectMapperConfiguration.mapper;
import static org.assertj.core.api.Assertions.assertThat;

package com.devskiller.friendly_id.spring;





public class FriendlyIdDeserializerTest {

	@Test
	public void shouldSerializeFriendlyId() throws Exception {
		UUID uuid = UUID.randomUUID();
		String json = mapper().writeValueAsString(uuid);
		System.out.println(json);
		assertThat(json).contains(FriendlyId.toFriendlyId(uuid));