org.apache.cactus.util
Class UniqueGenerator

java.lang.Object
  extended byorg.apache.cactus.util.UniqueGenerator

public class UniqueGenerator
extends java.lang.Object

Generates a quasi-unique id for a test case.

Version:
$Id: UniqueGenerator.java,v 1.3 2003/07/12 12:58:09 vmassol Exp $
Author:
Christopher Lenz

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 © 2000-2003 Apache Software Foundation. All Rights Reserved.