001package de.cuioss.test.generator.domain; 002 003import java.util.UUID; 004 005import de.cuioss.test.generator.TypedGenerator; 006 007/** 008 * Creates instrances of random uid-strings 009 * 010 * @author Oliver Wolff 011 * 012 */ 013public class UUIDStringGenerator implements TypedGenerator<String> { 014 015 private final TypedGenerator<UUID> uuids = new UUIDGenerator(); 016 017 @Override 018 public String next() { 019 return uuids.next().toString(); 020 } 021 022 @Override 023 public Class<String> getType() { 024 return String.class; 025 } 026 027}