mirror of https://github.com/apache/openjpa.git
OPENJPA-900: Remove hint key ordering for performance overhead
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43de09873b
commit
6a8483460d
|
@ -169,19 +169,6 @@ public class TestQueryHints extends SingleEMFTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
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 + "]",
|
||||
|
|
Loading…
Reference in New Issue