commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe...@apache.org
Subject svn commit: r369112 - in /jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id: ./ uuid/ uuid/clock/ uuid/state/
Date Sat, 14 Jan 2006 23:06:05 GMT
Author: joehni
Date: Sat Jan 14 15:05:45 2006
New Revision: 369112

URL: http://svn.apache.org/viewcvs?rev=369112&view=rev
Log:
Clean-up unit test initialization.

Modified:
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierGeneratorFactoryTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierUtilsTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/NodeManagerImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/UUIDTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/SystemClockImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/ThreadClockImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/InMemoryStateImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/NodeTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadOnlyResourceStateImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadWriteFileStateImplTest.java
    jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/StateHelperTest.java

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierGeneratorFactoryTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierGeneratorFactoryTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierGeneratorFactoryTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierGeneratorFactoryTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2003-2004 The Apache Software Foundation.
+ * Copyright 2003-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -15,10 +15,7 @@
  */
 package org.apache.commons.id;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 /**
  * Unit tests for {@link IdentifierGeneratorFactory}.
@@ -28,25 +25,6 @@
  */
 public class IdentifierGeneratorFactoryTest extends TestCase {
 
-    /** Constructor @param name String of the test. */
-    public IdentifierGeneratorFactoryTest(String name) {
-        super(name);
-    }
-
-    /** Main application entry @param args String array of argument. */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestSuite#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(IdentifierGeneratorFactoryTest.class);
-        suite.setName("IdentifierGeneratorFactory Tests");
-        return suite;
-    }
-
-    //-------------------------------------------------------------------------
-    /** @see junit.framework.TestSuite#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
     }

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierUtilsTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierUtilsTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierUtilsTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/IdentifierUtilsTest.java
Sat Jan 14 15:05:45 2006
@@ -15,13 +15,11 @@
  */
 package org.apache.commons.id;
 
+import junit.framework.AssertionFailedError;
+
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Modifier;
 
-import junit.framework.AssertionFailedError;
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
 /**
  * Tests the org.apache.commons.id.IdentifierUtils class.
  *
@@ -30,17 +28,6 @@
  */
 public class IdentifierUtilsTest extends junit.framework.TestCase {
 
-    /** Constructor @param name String test name. */
-    public IdentifierUtilsTest(String name) {
-        super(name);
-    }
-
-    /** @see junit.framework.TestSuite#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(IdentifierUtilsTest.class);
-        suite.setName("IdentifierUtils Tests");
-        return suite;
-    }
 
     /** Factory instance */
     protected static IdentifierGeneratorFactory factory = IdentifierGeneratorFactory.newInstance();

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/NodeManagerImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/NodeManagerImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/NodeManagerImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/NodeManagerImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,13 +16,10 @@
 
 package org.apache.commons.id.uuid;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
-import org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl;
 import org.apache.commons.id.uuid.state.Node;
+import org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl;
 
 /**
  * Unit tests for {@link NodeManagerImpl}.
@@ -35,21 +32,6 @@
     /** Pre test value for ReadOnlyResourceStateImpl.CONFIG_FILE_KEY */
     private String currentConfigFile;
     
- 
-    public NodeManagerImplTest(String name) {
-        super(name);
-    }
-
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(NodeManagerImplTest.class);
-        suite.setName("NodeManagerImpl Tests");
-        return suite;
-    }
-
     protected void setUp() throws Exception {
         super.setUp();
         currentConfigFile = System.getProperty(

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/UUIDTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/UUIDTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/UUIDTest.java (original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/UUIDTest.java Sat
Jan 14 15:05:45 2006
@@ -16,6 +16,10 @@
 
 package org.apache.commons.id.uuid;
 
+import junit.framework.TestCase;
+
+import org.apache.commons.id.Hex;
+
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.DataInput;
@@ -23,13 +27,6 @@
 import java.io.DataOutputStream;
 import java.io.IOException;
 
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
-
-import org.apache.commons.id.Hex;
-
 /**
  * Unit tests for {@link UUID}.
  *
@@ -38,34 +35,7 @@
  */
 public class UUIDTest extends TestCase {
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public UUIDTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-
-    public static Test suite() {
-        TestSuite suite = new TestSuite(UUIDTest.class);
-        suite.setName("UUID Tests");
-        return suite;
-    }
-
     //-------------------------------------------------------------------------
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
     }

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/SystemClockImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/SystemClockImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/SystemClockImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/SystemClockImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,12 +16,9 @@
 
 package org.apache.commons.id.uuid.clock;
 
-import java.util.Arrays;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
+
+import java.util.Arrays;
 
 /**
  * Unit tests for {@link SystemClockImplTest}.
@@ -40,33 +37,6 @@
     /** Indicates if the OS is windows */
     private static boolean isWindows = false;
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public SystemClockImplTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(SystemClockImplTest.class);
-        suite.setName("SystemClockImpl Clock Tests");
-        return suite;
-    }
-
-    //-------------------------------------------------------------------------
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
         if (System.getProperty(SYS_OS_NAME_PROPERTY).indexOf(SYS_OS_WINDOWS) > -1) {

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/ThreadClockImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/ThreadClockImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/ThreadClockImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/clock/ThreadClockImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,12 +16,9 @@
 
 package org.apache.commons.id.uuid.clock;
 
-import java.util.Arrays;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
+
+import java.util.Arrays;
 
 /**
  * Unit tests for {@link SystemClockImplTest}.
@@ -40,33 +37,6 @@
     /** Indicates if the OS is windows */
     private static boolean isWindows = false;
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public ThreadClockImplTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(ThreadClockImplTest.class);
-        suite.setName("ThreadClockImpl Clock Tests");
-        return suite;
-    }
-
-    //-------------------------------------------------------------------------
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
         if (System.getProperty(SYS_OS_NAME_PROPERTY).indexOf(SYS_OS_WINDOWS) > -1) {

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/InMemoryStateImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/InMemoryStateImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/InMemoryStateImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/InMemoryStateImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,10 +16,7 @@
 
 package org.apache.commons.id.uuid.state;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 /**
  * Unit tests for {@link InMemoryStateImpl}.
@@ -29,37 +26,10 @@
  */
 public class InMemoryStateImplTest extends TestCase {
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public InMemoryStateImplTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(InMemoryStateImplTest.class);
-        suite.setName("InMemoryStateImpl Tests");
-        return suite;
-    }
-
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
     }
 
-    /** @see junit.framework.TestCase#tearDown() */
     protected void tearDown() throws Exception {
         super.tearDown();
     }

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/NodeTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/NodeTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/NodeTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/NodeTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,12 +16,9 @@
 
 package org.apache.commons.id.uuid.state;
 
-import java.util.Arrays;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
+
+import java.util.Arrays;
 
 /**
  * Unit tests for {@link Node}.
@@ -31,37 +28,10 @@
  */
 public class NodeTest extends TestCase {
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public NodeTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(NodeTest.class);
-        suite.setName("Node Tests");
-        return suite;
-    }
-
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
     }
 
-    /** @see junit.framework.TestCase#tearDown() */
     protected void tearDown() throws Exception {
         super.tearDown();
     }

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadOnlyResourceStateImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadOnlyResourceStateImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadOnlyResourceStateImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadOnlyResourceStateImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,12 +16,9 @@
 
 package org.apache.commons.id.uuid.state;
 
-import java.util.Iterator;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
+
+import java.util.Iterator;
 
 /**
  * Unit tests for {@link ReadOnlyResourceStateImpl}.
@@ -34,38 +31,11 @@
     /** Pre test value for ReadOnlyResourceStateImpl.CONFIG_FILE_KEY */
     private String currentConfigFile;
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public ReadOnlyResourceStateImplTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(ReadOnlyResourceStateImplTest.class);
-        suite.setName("ReadOnlyResourceStateImpl Tests");
-        return suite;
-    }
-
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
         currentConfigFile = System.getProperty(ReadOnlyResourceStateImpl.CONFIG_FILENAME_KEY);
     }
 
-    /** @see junit.framework.TestCase#tearDown() */
     protected void tearDown() throws Exception {
         if (currentConfigFile != null) {
             System.setProperty(ReadOnlyResourceStateImpl.CONFIG_FILENAME_KEY, currentConfigFile);

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadWriteFileStateImplTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadWriteFileStateImplTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadWriteFileStateImplTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/ReadWriteFileStateImplTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,10 +16,7 @@
 
 package org.apache.commons.id.uuid.state;
 
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 /**
  * Unit tests for {@link ReadWriteFileStateImpl}.
@@ -32,38 +29,11 @@
     /** Pre test value for ReadOnlyResourceStateImpl.CONFIG_FILE_KEY */
     private String currentConfigFile;
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public ReadWriteFileStateImplTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(ReadWriteFileStateImplTest.class);
-        suite.setName("ReadWriteFileStateImpl Tests");
-        return suite;
-    }
-
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
         currentConfigFile = System.getProperty(ReadWriteFileStateImpl.CONFIG_FILENAME_KEY);
     }
 
-    /** @see junit.framework.TestCase#tearDown() */
     protected void tearDown() throws Exception {
         if (currentConfigFile != null) {
             System.setProperty(ReadWriteFileStateImpl.CONFIG_FILENAME_KEY, currentConfigFile);

Modified: jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/StateHelperTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/StateHelperTest.java?rev=369112&r1=369111&r2=369112&view=diff
==============================================================================
--- jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/StateHelperTest.java
(original)
+++ jakarta/commons/sandbox/id/trunk/src/test/org/apache/commons/id/uuid/state/StateHelperTest.java
Sat Jan 14 15:05:45 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,17 +16,14 @@
 
 package org.apache.commons.id.uuid.state;
 
-import java.util.Arrays;
-
-import junit.framework.Test;
 import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.textui.TestRunner;
 
 import org.apache.commons.id.uuid.clock.Clock;
 import org.apache.commons.id.uuid.clock.SystemClockImpl;
 import org.apache.commons.id.uuid.clock.ThreadClockImpl;
 
+import java.util.Arrays;
+
 /**
  * Unit tests for {@link StateHelper}.
  *
@@ -35,37 +32,10 @@
  */
 public class StateHelperTest extends TestCase {
 
-    /**
-     * Constructor for test
-     *
-     * @param name String name of the test
-     */
-    public StateHelperTest(String name) {
-        super(name);
-    }
-
-    /**
-     * Main application method
-     *
-     * @param args String arguments array
-     */
-    public static void main(String[] args) {
-        TestRunner.run(suite());
-    }
-
-    /** @see junit.framework.TestCase#suite() */
-    public static Test suite() {
-        TestSuite suite = new TestSuite(StateHelperTest.class);
-        suite.setName("StateHelper Tests");
-        return suite;
-    }
-
-    /** @see junit.framework.TestCase#setUp() */
     protected void setUp() throws Exception {
         super.setUp();
     }
 
-    /** @see junit.framework.TestCase#tearDown() */
     protected void tearDown() throws Exception {
         super.tearDown();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message