db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1346319 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
Date Tue, 05 Jun 2012 09:49:15 GMT
Author: kahatlen
Date: Tue Jun  5 09:49:15 2012
New Revision: 1346319

URL: http://svn.apache.org/viewvc?rev=1346319&view=rev
Log:
Remove unnecessary wrapping of UDTTest in CleanDatabaseTestSetup.

TestConfiguration.defaultSuite() already makes sure that it is wrapped
in that decorator.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java?rev=1346319&r1=1346318&r2=1346319&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
Tue Jun  5 09:49:15 2012
@@ -21,7 +21,6 @@
 
 package org.apache.derbyTesting.functionTests.tests.lang;
 
-import java.math.BigDecimal;
 import java.sql.CallableStatement;
 import java.sql.Connection;
 import java.sql.DriverManager;
@@ -29,15 +28,10 @@ import java.sql.ParameterMetaData;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.sql.ResultSetMetaData;
-import java.sql.Timestamp;
 import java.util.HashMap;
 
 import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.TestConfiguration;
-import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
 import org.apache.derbyTesting.junit.JDBC;
 
 /**
@@ -92,10 +86,7 @@ public class UDTTest  extends GeneratedC
      */
     public static Test suite()
     {
-        TestSuite suite = (TestSuite) TestConfiguration.defaultSuite(UDTTest.class);
-        Test        result = new CleanDatabaseTestSetup( suite );
-
-        return result;
+        return TestConfiguration.defaultSuite(UDTTest.class);
     }
 
     ///////////////////////////////////////////////////////////////////////////////////



Mime
View raw message