db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1167495 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java
Date Sat, 10 Sep 2011 10:56:53 GMT
Author: tv
Date: Sat Sep 10 10:56:53 2011
New Revision: 1167495

URL: http://svn.apache.org/viewvc?rev=1167495&view=rev
Log:
Remove unused imports, fix some typos

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java?rev=1167495&r1=1167494&r2=1167495&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/InitShutdownTest.java
Sat Sep 10 10:56:53 2011
@@ -20,14 +20,9 @@ package org.apache.torque;
  */
 
 import java.util.List;
-import java.util.Map;
 
 import junit.framework.TestCase;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.torque.map.MapBuilder;
-import org.apache.torque.map.TableMap;
 import org.apache.torque.test.NonPkOIntegerFkPeer;
 import org.apache.torque.test.NonPkPIntegerFkPeer;
 import org.apache.torque.test.NullableOIntegerFkPeer;
@@ -38,7 +33,6 @@ import org.apache.torque.test.PIntegerPk
 import org.apache.torque.test.PIntegerPkPeer;
 import org.apache.torque.test.RequiredOIntegerFkPeer;
 import org.apache.torque.test.RequiredPIntegerFkPeer;
-import org.apache.torque.test.map.PIntegerPkMapBuilder;
 import org.apache.torque.util.Criteria;
 
 /**
@@ -48,8 +42,6 @@ import org.apache.torque.util.Criteria;
  */
 public class InitShutdownTest extends TestCase
 {
-    private static Log log = LogFactory.getLog(DataTest.class);
-
     /**
      * Creates a new instance.
      */
@@ -60,7 +52,7 @@ public class InitShutdownTest extends Te
 
     public void testInitFromScratch() throws TorqueException
     {
-        // Torque can already be inititialized if the test is run in eclipse
+        // Torque can already be initialized if the test is run in eclipse
         // and other tests have run before. This is not the ideal case
         // but we consider it anyway
         if (Torque.isInit())
@@ -89,7 +81,7 @@ public class InitShutdownTest extends Te
     public void testShutdown() throws Exception
     {
         // Torque should be initialized from previous test so this is not
-        // strictly needed 
+        // strictly needed
         if (!Torque.isInit())
         {
             initTorque();
@@ -118,7 +110,7 @@ public class InitShutdownTest extends Te
         assertNotNull(
                 Torque.getDatabaseMap().getTable(OIntegerPkPeer.TABLE_NAME));
     }
-    
+
     private void initTorque()  throws TorqueException
     {
         Torque.init(System.getProperty(
@@ -139,14 +131,14 @@ public class InitShutdownTest extends Te
         OIntegerPk oIntegerPk = new OIntegerPk();
         oIntegerPk.setName("shutdownName");
         oIntegerPk.save();
-        List<OIntegerPk> oIntegerPkList 
+        List<OIntegerPk> oIntegerPkList
                 = OIntegerPkPeer.doSelect(new Criteria());
         assertEquals(
                 "List should contain one OIntegerPk",
                 1,
                 oIntegerPkList.size());
         oIntegerPk = oIntegerPkList.get(0);
-        assertEquals("OIntegerPk name should be shutdownName", 
+        assertEquals("OIntegerPk name should be shutdownName",
                 "shutdownName",
                 oIntegerPk.getName());
     }
@@ -173,7 +165,7 @@ public class InitShutdownTest extends Te
                 1,
                 pIntegerPkList.size());
         pIntegerPk = pIntegerPkList.get(0);
-        assertEquals("PIntegerPk name should be shutdownName", 
+        assertEquals("PIntegerPk name should be shutdownName",
                 "shutdownName",
                 pIntegerPk.getName());
     }



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


Mime
View raw message