java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.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).
Fields inherited from class junit.framework.TestCase |
|
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 |
HqlParserTest
public HqlParserTest(java.lang.String name)
- Standard JUnit test case constructor.
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()