vmassol 2003/07/12 05:58:09
Modified: framework/src/java/share/org/apache/cactus/util
UniqueGenerator.java
Log:
Use TestCase instead of tying up the implementation with some Cactus specific class
Revision Changes Path
1.3 +4 -4
jakarta-cactus/framework/src/java/share/org/apache/cactus/util/UniqueGenerator.java
Index: UniqueGenerator.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/util/UniqueGenerator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UniqueGenerator.java 29 Jun 2003 13:52:02 -0000 1.2
+++ UniqueGenerator.java 12 Jul 2003 12:58:09 -0000 1.3
@@ -59,7 +59,7 @@
import java.net.InetAddress;
import java.net.UnknownHostException;
-import org.apache.cactus.AbstractWebServerTestCase;
+import junit.framework.TestCase;
/**
* Generates a quasi-unique id for a test case.
@@ -108,7 +108,7 @@
* @param theTestCase The Test to generate a unique ID for
* @return The generated ID
*/
- public static String generate(AbstractWebServerTestCase theTestCase)
+ public static String generate(TestCase theTestCase)
{
long time = System.currentTimeMillis();
synchronized (lock)
@@ -125,7 +125,7 @@
* @param theTime The time component to include in the generated ID
* @return The generated ID
*/
- public static String generate(AbstractWebServerTestCase theTestCase,
+ public static String generate(TestCase theTestCase,
long theTime)
{
String id = ipAddress;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]