From 5958957e7ce8a2dd2bbe3ea4d979ec8d603e1265 Mon Sep 17 00:00:00 2001 From: Eugeny Degtyarjov Date: Thu, 10 Sep 2015 14:33:36 +0000 Subject: [PATCH] PL-5941 Case insensitive search does not work if we use Query and EntityManager fix tests #PL-5941 --- .../cuba/gui/autocomplete/impl/QueryAnalyzerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gui/test/com/haulmont/cuba/gui/autocomplete/impl/QueryAnalyzerTest.java b/modules/gui/test/com/haulmont/cuba/gui/autocomplete/impl/QueryAnalyzerTest.java index 98f1cb6998..b2874888f4 100644 --- a/modules/gui/test/com/haulmont/cuba/gui/autocomplete/impl/QueryAnalyzerTest.java +++ b/modules/gui/test/com/haulmont/cuba/gui/autocomplete/impl/QueryAnalyzerTest.java @@ -165,7 +165,7 @@ public class QueryAnalyzerTest { pathNode = (PathNode) orderByField.getChild(0); assertEquals("c", pathNode.getEntityVariableName()); assertEquals("regNumber", pathNode.getChild(0).getText()); - assertEquals("DESC", orderByField.getChild(1).getText()); + assertEquals("desc", orderByField.getChild(1).getText()); } @Test @@ -190,7 +190,7 @@ public class QueryAnalyzerTest { assertTrue(selectedItem.getChild(0) instanceof AggregateExpressionNode); AggregateExpressionNode countExpr = (AggregateExpressionNode) selectedItem.getChild(0); - assertEquals("COUNT", countExpr.getChild(0).getText()); + assertEquals("count", countExpr.getChild(0).getText()); assertEquals("c", countExpr.getChild(2).getText()); assertEquals(4, countExpr.getChildCount()); assertNull(orderByNode.getFirstChildWithType(JPA2Lexer.T_ORDER_BY)); @@ -221,8 +221,8 @@ public class QueryAnalyzerTest { assertTrue(selectedItem.getChild(0) instanceof AggregateExpressionNode); AggregateExpressionNode countExpr = (AggregateExpressionNode) selectedItem.getChild(0); - assertEquals("COUNT", countExpr.getChild(0).getText()); - assertEquals("DISTINCT", countExpr.getChild(2).getText()); + assertEquals("count", countExpr.getChild(0).getText()); + assertEquals("distinct", countExpr.getChild(2).getText()); assertEquals("d", countExpr.getChild(3).getText()); assertEquals(5, countExpr.getChildCount()); assertNull(orderByNode.getFirstChildWithType(JPA2Lexer.T_ORDER_BY));