org.hibernate.test.hql
Class HqlParserTest

java.lang.Object
  extended by org.hibernate.test.hql.HqlParserTest

public class HqlParserTest
extends Object

Tests the HQL parser on various inputs, just makes sure that the first phase of the parser works properly (i.e. no unexpected syntax errors). todo this should be a unit test.


Constructor Summary
HqlParserTest()
           
 
Method Summary
 void testArrayExpr()
           
 void testComplexConstructor()
           
 void testConstructorIn()
           
 void testDocoExamples910()
           
 void testDocoExamples911()
           
 void testDocoExamples912()
           
 void testDocoExamples92()
          Section 9.2 - from *
 void testDocoExamples93()
          Section 9.3 - Associations and joins *
 void testDocoExamples94()
          Section 9.4 - Select *
 void testDocoExamples95()
          Section 9.5 - Aggregate functions *
 void testDocoExamples96()
          Section 9.6 - Polymorphism *
 void testDocoExamples97()
          Section 9.7 - Where *
 void testDocoExamples98()
          Section 9.8 - Expressions *
 void testDocoExamples99()
           
 void testDotElements()
           
 void testDoubleLiteral()
           
 void testEjbqlExtensions()
           
 void testEjbqlKeywordsAsIdentifier()
           
 void testEmptyFilter()
           
 void testExamples1()
           
 void testFromWithJoin()
           
 void testGroupBy()
           
 void testHB1042()
           
 void testHHH1107()
           
 void testHHH1247()
           
 void testHHH1780()
           
 void testHHH354()
           
 void testHHH719()
           
 void testInElements()
           
 void testInNotIn()
           
 void testKeywordInPath()
           
 void testLineAndColumnNumber()
           
 void testMultiByteCharacters()
           
 void testMultipleActualParameters()
           
 void testMultipleFromClasses()
           
 void testNoFrom()
           
 void testNot()
           
 void testOperatorPrecedence()
           
 void testOrderBy()
           
 void testOrderByFilter()
           
 void testOtherSyntax()
           
 void testPathologicalKeywordAsIdentifier()
           
 void testRestrictionFilter()
           
 void testSelect()
           
 void testSelectAll()
           
 void testUnion()
           
 void testUnitTestHql()
          Tests HQL generated by the other unit tests.
 void testUnnamedParameter()
           
 void testWhere()
           
 void testWhereAsIdentifier()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HqlParserTest

public HqlParserTest()
Method Detail

testUnion

public void testUnion()
               throws Exception
Throws:
Exception

testDocoExamples92

public void testDocoExamples92()
                        throws Exception
Section 9.2 - from *

Throws:
Exception

testDocoExamples93

public void testDocoExamples93()
                        throws Exception
Section 9.3 - Associations and joins *

Throws:
Exception

testDocoExamples94

public void testDocoExamples94()
                        throws Exception
Section 9.4 - Select *

Throws:
Exception

testDocoExamples95

public void testDocoExamples95()
                        throws Exception
Section 9.5 - Aggregate functions *

Throws:
Exception

testDocoExamples96

public void testDocoExamples96()
                        throws Exception
Section 9.6 - Polymorphism *

Throws:
Exception

testDocoExamples97

public void testDocoExamples97()
                        throws Exception
Section 9.7 - Where *

Throws:
Exception

testDocoExamples98

public void testDocoExamples98()
                        throws Exception
Section 9.8 - Expressions *

Throws:
Exception

testDocoExamples99

public void testDocoExamples99()
                        throws Exception
Throws:
Exception

testDocoExamples910

public void testDocoExamples910()
                         throws Exception
Throws:
Exception

testDocoExamples911

public void testDocoExamples911()
                         throws Exception
Throws:
Exception

testDocoExamples912

public void testDocoExamples912()
                         throws Exception
Throws:
Exception

testExamples1

public void testExamples1()
                   throws Exception
Throws:
Exception

testArrayExpr

public void testArrayExpr()
                   throws Exception
Throws:
Exception

testMultipleActualParameters

public void testMultipleActualParameters()
                                  throws Exception
Throws:
Exception

testMultipleFromClasses

public void testMultipleFromClasses()
                             throws Exception
Throws:
Exception

testFromWithJoin

public void testFromWithJoin()
                      throws Exception
Throws:
Exception

testSelect

public void testSelect()
                throws Exception
Throws:
Exception

testWhere

public void testWhere()
               throws Exception
Throws:
Exception

testGroupBy

public void testGroupBy()
                 throws Exception
Throws:
Exception

testOrderBy

public void testOrderBy()
                 throws Exception
Throws:
Exception

testDoubleLiteral

public void testDoubleLiteral()
                       throws Exception
Throws:
Exception

testComplexConstructor

public void testComplexConstructor()
                            throws Exception
Throws:
Exception

testInNotIn

public void testInNotIn()
                 throws Exception
Throws:
Exception

testOperatorPrecedence

public void testOperatorPrecedence()
                            throws Exception
Throws:
Exception

testUnitTestHql

public void testUnitTestHql()
                     throws Exception
Tests HQL generated by the other unit tests.

Throws:
Exception - if the HQL could not be parsed.

testUnnamedParameter

public void testUnnamedParameter()
                          throws Exception
Throws:
Exception

testInElements

public void testInElements()
                    throws Exception
Throws:
Exception

testDotElements

public void testDotElements()
                     throws Exception
Throws:
Exception

testSelectAll

public void testSelectAll()
                   throws Exception
Throws:
Exception

testNot

public void testNot()
             throws Exception
Throws:
Exception

testOtherSyntax

public void testOtherSyntax()
                     throws Exception
Throws:
Exception

testEjbqlExtensions

public void testEjbqlExtensions()
                         throws Exception
Throws:
Exception

testEmptyFilter

public void testEmptyFilter()
                     throws Exception
Throws:
Exception

testOrderByFilter

public void testOrderByFilter()
                       throws Exception
Throws:
Exception

testRestrictionFilter

public void testRestrictionFilter()
                           throws Exception
Throws:
Exception

testNoFrom

public void testNoFrom()
                throws Exception
Throws:
Exception

testHB1042

public void testHB1042()
                throws Exception
Throws:
Exception

testKeywordInPath

public void testKeywordInPath()
                       throws Exception
Throws:
Exception

testPathologicalKeywordAsIdentifier

public void testPathologicalKeywordAsIdentifier()
                                         throws Exception
Throws:
Exception

testHHH354

public void testHHH354()
                throws Exception
Throws:
Exception

testWhereAsIdentifier

public void testWhereAsIdentifier()
                           throws Exception
Throws:
Exception

testEjbqlKeywordsAsIdentifier

public void testEjbqlKeywordsAsIdentifier()
                                   throws Exception
Throws:
Exception

testConstructorIn

public void testConstructorIn()
                       throws Exception
Throws:
Exception

testMultiByteCharacters

public void testMultiByteCharacters()
                             throws Exception
Throws:
Exception

testHHH719

public void testHHH719()
                throws Exception
Throws:
Exception

testHHH1107

public void testHHH1107()
                 throws Exception
Throws:
Exception

testHHH1247

public void testHHH1247()
                 throws Exception
Throws:
Exception

testHHH1780

public void testHHH1780()
                 throws Exception
Throws:
Exception

testLineAndColumnNumber

public void testLineAndColumnNumber()
                             throws Exception
Throws:
Exception


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.