Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cactus.internal.util
Class UniqueGenerator

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.