harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r820568 - in /harmony/enhanced/classlib/trunk: depends/files/rowset.properties modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
Date Thu, 01 Oct 2009 08:18:03 GMT
Author: tellison
Date: Thu Oct  1 08:18:02 2009
New Revision: 820568

URL: http://svn.apache.org/viewvc?rev=820568&view=rev
Log:
Apply patch for HARMONY-6345 ([classlib][sql] rowset.properties template causes an empty provider
to be added in SyncFactory)

Added:
    harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
  (with props)
Modified:
    harmony/enhanced/classlib/trunk/depends/files/rowset.properties

Modified: harmony/enhanced/classlib/trunk/depends/files/rowset.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/depends/files/rowset.properties?rev=820568&r1=820567&r2=820568&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/depends/files/rowset.properties (original)
+++ harmony/enhanced/classlib/trunk/depends/files/rowset.properties Thu Oct  1 08:18:02 2009
@@ -14,10 +14,6 @@
 # limitations under the License.
 
 
-rowset.provider.classname.0=
-rowset.provider.vendor.0=
+rowset.provider.classname.0=org.apache.harmony.sql.internal.rowset.HYOptimisticProvider
+rowset.provider.vendor.0=Apache Harmony
 rowset.provider.version.0=
-
-rowset.provider.classname.1=
-rowset.provider.vendor.1=
-rowset.provider.version.1=

Added: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java?rev=820568&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
Thu Oct  1 08:18:02 2009
@@ -0,0 +1,42 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.harmony.sql.tests.internal.rowset;
+
+import java.util.Enumeration;
+
+import javax.sql.rowset.spi.SyncFactory;
+import javax.sql.rowset.spi.SyncFactoryException;
+import javax.sql.rowset.spi.SyncProvider;
+
+import junit.framework.TestCase;
+
+public class SyncFactoryTest extends TestCase {
+
+    /**
+     * Test for SyncFactory.getRegisteredProviders(). Regression for
+     * HARMONY-6345.
+     * 
+     * @throws SyncFactoryException
+     */
+    public void testGetRegisteredProviders() throws SyncFactoryException {
+        Enumeration<SyncProvider> providers = SyncFactory
+                .getRegisteredProviders();
+        while (providers.hasMoreElements()) {
+            SyncFactory.getInstance(providers.nextElement().getProviderID());
+        }
+    }
+}

Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/SyncFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message