db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r707105 - /db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java
Date Wed, 22 Oct 2008 15:45:34 GMT
Author: kristwaa
Date: Wed Oct 22 08:45:33 2008
New Revision: 707105

URL: http://svn.apache.org/viewvc?rev=707105&view=rev
Log:
Merged 707103 from trunk (whitespace and formatting changes only).

Modified:
    db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java

Modified: db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java?rev=707105&r1=707104&r2=707105&view=diff
==============================================================================
--- db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java
(original)
+++ db/derby/code/branches/10.4/java/testing/org/apache/derbyTesting/functionTests/tests/memory/MultiByteClobTest.java
Wed Oct 22 08:45:33 2008
@@ -132,43 +132,44 @@
     }
 
     /**
-	 * Runs the test fixtures in embedded and client.
-	 *
-	 * @return test suite
-	 */
-	public static Test suite() {
-		TestSuite suite = new TestSuite("MultiByteClobTest");
-		suite.addTest(baseSuite("MultiByteClobTest:embedded"));
-                // Disable for client for now. Client clob is inordinately slow.
-		//suite.addTest(TestConfiguration
-		//		.clientServerDecorator(baseSuite("MultiByteClobTest:client")));
-                Properties p = new Properties();
-                // use small pageCacheSize so we don't run out of memory on the insert.
-                p.setProperty("derby.storage.pageCacheSize", "100");
-                return new SystemPropertyTestSetup(suite,p);	
-	}
+     * Runs the test fixtures in embedded and client.
+     *
+     * @return test suite
+     */
+    public static Test suite() {
+        TestSuite suite = new TestSuite("MultiByteClobTest");
+        suite.addTest(baseSuite("MultiByteClobTest:embedded"));
+        // Disable for client for now. Client clob is inordinately slow.
+        //suite.addTest(TestConfiguration
+        //    .clientServerDecorator(baseSuite("MultiByteClobTest:client")));
+        Properties p = new Properties();
+        // use small pageCacheSize so we don't run out of memory on the insert.
+        p.setProperty("derby.storage.pageCacheSize", "100");
+        return new SystemPropertyTestSetup(suite,p);
+    }
 
-	/**
-	 * Base suite of tests that will run in both embedded and client.
-	 *
-	 * @param name
-	 *            Name for the suite.
-	 */
-	private static Test baseSuite(String name) {
-		TestSuite suite = new TestSuite(name);
-		suite.addTestSuite(MultiByteClobTest.class);
-		return new CleanDatabaseTestSetup(DatabasePropertyTestSetup
-				.setLockTimeouts(suite, 2, 4)) {
+    /**
+     * Base suite of tests that will run in both embedded and client.
+     *
+     * @param name name for the suite.
+     */
+    private static Test baseSuite(String name) {
+        TestSuite suite = new TestSuite(name);
+        suite.addTestSuite(MultiByteClobTest.class);
+        return new CleanDatabaseTestSetup(DatabasePropertyTestSetup
+                .setLockTimeouts(suite, 2, 4)) {
 
-			/**
-			 * Creates the tables used in the test cases.
-			 *
-			 * @exception java.sql.SQLException
-			 *                if a database error occurs
-			 */
-			protected void decorateSQL(Statement stmt) throws SQLException {
-				stmt.execute("CREATE TABLE MB_CLOBTABLE (K INT CONSTRAINT PK PRIMARY KEY, C CLOB(" +
LONG_CLOB_LENGTH + "))");
-			}
-		};
-	}
+            /**
+             * Creates the tables used in the test cases.
+             *
+             * @exception java.sql.SQLException
+             *                if a database error occurs
+             */
+            protected void decorateSQL(Statement stmt) throws SQLException {
+                stmt.execute("CREATE TABLE MB_CLOBTABLE " +
+                        "(K INT CONSTRAINT PK PRIMARY KEY, C CLOB(" +
+                        LONG_CLOB_LENGTH + "))");
+            }
+        };
+    }
 }



Mime
View raw message