Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test.hql
Class HqlParserTest  view HqlParserTest download HqlParserTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.hibernate.test.hql.HqlParserTest
All Implemented Interfaces:
junit.framework.Test

public class HqlParserTest
extends junit.framework.TestCase

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).


Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
HqlParserTest(java.lang.String name)
          Standard JUnit test case constructor.
 
Method Summary
private  antlr.collections.AST doParse(java.lang.String input, boolean filter)
           
private  void parse(java.lang.String input)
           
private  void parseFilter(java.lang.String input)
           
static junit.framework.Test suite()
           
 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 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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HqlParserTest

public HqlParserTest(java.lang.String name)
Standard JUnit test case constructor.

Method Detail

testUnion

public void testUnion()
               throws java.lang.Exception

testDocoExamples92

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


testDocoExamples93

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


testDocoExamples94

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


testDocoExamples95

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


testDocoExamples96

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


testDocoExamples97

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


testDocoExamples98

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


testDocoExamples99

public void testDocoExamples99()
                        throws java.lang.Exception

testDocoExamples910

public void testDocoExamples910()
                         throws java.lang.Exception

testDocoExamples911

public void testDocoExamples911()
                         throws java.lang.Exception

testDocoExamples912

public void testDocoExamples912()
                         throws java.lang.Exception

testExamples1

public void testExamples1()
                   throws java.lang.Exception

testArrayExpr

public void testArrayExpr()
                   throws java.lang.Exception

testMultipleActualParameters

public void testMultipleActualParameters()
                                  throws java.lang.Exception

testMultipleFromClasses

public void testMultipleFromClasses()
                             throws java.lang.Exception

testFromWithJoin

public void testFromWithJoin()
                      throws java.lang.Exception

testSelect

public void testSelect()
                throws java.lang.Exception

testWhere

public void testWhere()
               throws java.lang.Exception

testGroupBy

public void testGroupBy()
                 throws java.lang.Exception

testOrderBy

public void testOrderBy()
                 throws java.lang.Exception

testDoubleLiteral

public void testDoubleLiteral()
                       throws java.lang.Exception

testComplexConstructor

public void testComplexConstructor()
                            throws java.lang.Exception

testInNotIn

public void testInNotIn()
                 throws java.lang.Exception

testOperatorPrecedence

public void testOperatorPrecedence()
                            throws java.lang.Exception

testUnitTestHql

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


testUnnamedParameter

public void testUnnamedParameter()
                          throws java.lang.Exception

testInElements

public void testInElements()
                    throws java.lang.Exception

testDotElements

public void testDotElements()
                     throws java.lang.Exception

testSelectAll

public void testSelectAll()
                   throws java.lang.Exception

testNot

public void testNot()
             throws java.lang.Exception

testOtherSyntax

public void testOtherSyntax()
                     throws java.lang.Exception

testEjbqlExtensions

public void testEjbqlExtensions()
                         throws java.lang.Exception

testEmptyFilter

public void testEmptyFilter()
                     throws java.lang.Exception

testOrderByFilter

public void testOrderByFilter()
                       throws java.lang.Exception

testRestrictionFilter

public void testRestrictionFilter()
                           throws java.lang.Exception

testNoFrom

public void testNoFrom()
                throws java.lang.Exception

testHB1042

public void testHB1042()
                throws java.lang.Exception

testKeywordInPath

public void testKeywordInPath()
                       throws java.lang.Exception

testPathologicalKeywordAsIdentifier

public void testPathologicalKeywordAsIdentifier()
                                         throws java.lang.Exception

testHHH354

public void testHHH354()
                throws java.lang.Exception

testWhereAsIdentifier

public void testWhereAsIdentifier()
                           throws java.lang.Exception

testEjbqlKeywordsAsIdentifier

public void testEjbqlKeywordsAsIdentifier()
                                   throws java.lang.Exception

testConstructorIn

public void testConstructorIn()
                       throws java.lang.Exception

testMultiByteCharacters

public void testMultiByteCharacters()
                             throws java.lang.Exception

testHHH719

public void testHHH719()
                throws java.lang.Exception

testHHH1107

public void testHHH1107()
                 throws java.lang.Exception

testHHH1247

public void testHHH1247()
                 throws java.lang.Exception

testLineAndColumnNumber

public void testLineAndColumnNumber()
                             throws java.lang.Exception

parseFilter

private void parseFilter(java.lang.String input)
                  throws antlr.TokenStreamException,
                         antlr.RecognitionException

parse

private void parse(java.lang.String input)
            throws antlr.RecognitionException,
                   antlr.TokenStreamException

doParse

private antlr.collections.AST doParse(java.lang.String input,
                                      boolean filter)
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException

suite

public static junit.framework.Test suite()