Package org.hibernate.hql.testing

Examples of org.hibernate.hql.testing.ForGrammar


    GrammarTestDescriptor grammarTest = new GrammarTestParser().getGrammarTest( testClass, grammarFileName );
    runners = getRunners( testClass, grammarTest );
  }

  private String getGrammarFileName(Class<?> testClass) throws InitializationError {
    ForGrammar forGrammar = testClass.getAnnotation( ForGrammar.class );
    if ( forGrammar == null ) {
      throw new InitializationError( "A grammar test file must be specified via @" + ForGrammar.class.getSimpleName() + "." );
    }

    return forGrammar.value();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.hql.testing.ForGrammar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.