User: d_jencks
Date: 01/09/14 18:27:05
Modified: src/main/org/jboss/test/idgen/test IdGenUnitTestCase.java
Log:
fixed tabs to spaces
Revision Changes Path
1.3 +49 -31
jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java
Index: IdGenUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/idgen/test/IdGenUnitTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- IdGenUnitTestCase.java 2001/09/15 01:07:11 1.2
+++ IdGenUnitTestCase.java 2001/09/15 01:27:05 1.3
@@ -9,9 +9,9 @@
* All rights reserved.
*/
package org.jboss.test.idgen.test;
+import java.lang.reflect.*;
import java.util.*;
-import java.lang.reflect.*;
import javax.ejb.*;
import javax.naming.*;
@@ -19,73 +19,91 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.jboss.test.JBossTestCase;
import org.jboss.test.idgen.interfaces.*;
-import org.jboss.test.JBossTestCase;
-
/**
- *
- * @see <related>
- * @author Author: d_jencks only added JBossTestCase and logging
- * @version $Revision: 1.2 $
+ * @see <related>
+ * @author Author: d_jencks only added JBossTestCase and logging
+ * @version $Revision: 1.3 $
*/
public class IdGenUnitTestCase
- extends JBossTestCase
+ extends JBossTestCase
{
// Constants -----------------------------------------------------
-
+
// Attributes ----------------------------------------------------
-
+
// Static --------------------------------------------------------
-
+
// Constructors --------------------------------------------------
- public IdGenUnitTestCase(String name)
- {
- super(name);
- }
-
+ /**
+ * Constructor for the IdGenUnitTestCase object
+ *
+ * @param name Description of Parameter
+ */
+ public IdGenUnitTestCase(String name)
+ {
+ super(name);
+ }
+
// Public --------------------------------------------------------
+ /**
+ * A unit test for JUnit
+ *
+ * @exception Exception Description of Exception
+ */
public void testGenerator()
- throws Exception
+ throws Exception
{
IdGeneratorHome home =
(IdGeneratorHome)getInitialContext().lookup(IdGeneratorHome.JNDI_NAME);
IdGenerator generator = home.create();
-
+
generator.getNewId("Account");
generator.getNewId("Account");
generator.getNewId("Account");
-
+
generator.getNewId("Customer");
generator.getNewId("Customer");
generator.getNewId("Customer");
-
+
generator.remove();
}
-
+
+ /**
+ * The JUnit setup method
+ *
+ * @exception Exception Description of Exception
+ */
protected void setUp()
- throws Exception
+ throws Exception
{
- super.setUp();
- deployJ2ee("idgen.jar");
+ super.setUp();
+ deployJ2ee("idgen.jar");
getLog().debug("Remove id counters");
{
IdCounterHome home = (IdCounterHome)new
InitialContext().lookup(IdCounterHome.JNDI_NAME);
Collection counters = home.findAll();
Iterator enum = counters.iterator();
- while(enum.hasNext())
+ while (enum.hasNext())
{
EJBObject obj = (EJBObject)enum.next();
- getLog().debug("Removing "+obj.getPrimaryKey());
+ getLog().debug("Removing " + obj.getPrimaryKey());
obj.remove();
}
}
}
- protected void tearDown() throws Exception
- {
- undeployJ2ee("idgen.jar");
- super.tearDown();
- }
+ /**
+ * The teardown method for JUnit
+ *
+ * @exception Exception Description of Exception
+ */
+ protected void tearDown() throws Exception
+ {
+ undeployJ2ee("idgen.jar");
+ super.tearDown();
+ }
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development