org.apache.cactus.internal.util
Class UniqueGenerator

java.lang.Object
  extended by org.apache.cactus.internal.util.UniqueGenerator

public class UniqueGenerator
extends java.lang.Object

Generates a quasi-unique id for a test case.

Version:
$Id: UniqueGenerator.java 238991 2004-05-22 11:34:50Z vmassol $

Constructor Summary
UniqueGenerator()
           
 
Method Summary
static java.lang.String generate(junit.framework.TestCase theTestCase)
          Generates a unique identifier for a Cactus test.
static java.lang.String generate(junit.framework.TestCase theTestCase, long theTime)
          Generates a unique identifier for a Cactus test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueGenerator

public UniqueGenerator()
Method Detail

generate

public static java.lang.String generate(junit.framework.TestCase theTestCase)
Generates a unique identifier for a Cactus test.

Parameters:
theTestCase - The Test to generate a unique ID for
Returns:
The generated ID

generate

public static java.lang.String generate(junit.framework.TestCase theTestCase,
                                        long theTime)
Generates a unique identifier for a Cactus test.

Parameters:
theTestCase - The Test to generate a unique ID for
theTime - The time component to include in the generated ID
Returns:
The generated ID


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.