openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r782783 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java
Date Mon, 08 Jun 2009 21:05:12 GMT
Author: ppoddar
Date: Mon Jun  8 21:05:12 2009
New Revision: 782783

URL: http://svn.apache.org/viewvc?rev=782783&view=rev
Log:
OPENJPA-900: Remove hint key ordering for performance overhead

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java?rev=782783&r1=782782&r2=782783&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/conf/TestQueryHints.java
Mon Jun  8 21:05:12 2009
@@ -169,19 +169,6 @@
         }
     }
     
-    public void testParts() {
-        HintHandler.HintKeyComparator test =
-            new HintHandler.HintKeyComparator();
-        assertEquals(0, test.countDots("a"));
-        assertEquals(1, test.countDots("a.b"));
-        assertEquals(2, test.countDots("a.b.c"));
-        assertEquals(3, test.countDots("a.b.c.d"));
-        assertEquals(4, test.countDots("a.b.c.d."));
-        assertEquals(1, test.countDots("."));
-        assertEquals(0, test.countDots(""));
-        assertEquals(0, test.countDots(null));
-    }
-    
     void assertSupportedHint(String hint, boolean contains) {
         if (contains)
             assertTrue("Expected supported hint [" + hint + "]",



Mime
View raw message