org.hibernate.ejb.criteria.basic
Class AggregationResultTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase
          extended by org.hibernate.ejb.metamodel.AbstractMetamodelSpecificTest
              extended by org.hibernate.ejb.criteria.basic.AggregationResultTest

public class AggregationResultTest
extends org.hibernate.ejb.metamodel.AbstractMetamodelSpecificTest


Field Summary
 
Fields inherited from class org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase
NO_CLASSES, NO_MAPPINGS
 
Constructor Summary
AggregationResultTest()
           
 
Method Summary
 void cleanUpTestData()
           
 void createTestData()
           
 void testSumOfBigDecimals()
          Sum of BigDecimal should return a BigDecimal
 void testSumOfBigIntegers()
          Sum of BigInteger should return a BigInteger
 void testSumOfDoubles()
          Sum of Doubles should return a Double
 void testSumOfFloats()
          Sum of Floats should return a Float; note that this is distinctly different than JPAQL
 void testSumOfIntegers()
          Sum of Integers should return an Integer; note that this is distinctly different than JPAQL
 void testSumOfLongs()
          Sum of Longs should return a Long
 
Methods inherited from class org.hibernate.ejb.metamodel.AbstractMetamodelSpecificTest
getAnnotatedClasses
 
Methods inherited from class org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase
addConfigOptions, addMappings, afterConfigurationBuilt, afterEntityManagerFactoryBuilt, applyServices, buildConfiguration, buildEntityManagerFactory, constructConfiguration, createEntityManager, createIsolatedEntityManager, createIsolatedEntityManager, createSchema, entityManagerFactory, getCachedClasses, getCachedCollections, getConfig, getDialect, getEjb3DD, getMappings, getOrCreateEntityManager, releaseResources, serviceRegistry
 
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
releaseTransactions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationResultTest

public AggregationResultTest()
Method Detail

createTestData

public void createTestData()

cleanUpTestData

public void cleanUpTestData()
                     throws Exception
Throws:
Exception

testSumOfLongs

public void testSumOfLongs()
Sum of Longs should return a Long


testSumOfIntegers

public void testSumOfIntegers()
Sum of Integers should return an Integer; note that this is distinctly different than JPAQL


testSumOfDoubles

public void testSumOfDoubles()
Sum of Doubles should return a Double


testSumOfFloats

public void testSumOfFloats()
Sum of Floats should return a Float; note that this is distinctly different than JPAQL


testSumOfBigIntegers

public void testSumOfBigIntegers()
Sum of BigInteger should return a BigInteger


testSumOfBigDecimals

public void testSumOfBigDecimals()
Sum of BigDecimal should return a BigDecimal



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