StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjeBemcEnergySumCalculatorBuilderTest.C
1 // Copyright (C) 2007 Tai Sakuma <sakuma@mit.edu>
2 
3 #include <StjeBemcEnergySumCalculator.h>
4 #include <StjeBemcEnergySumCalculatorBuilder.h>
5 
6 
7 #include "StjeBemcEnergySumCalculatorBuilderTest.hh"
8 
9 using namespace std;
10 
11 // Registers the fixture into the 'registry'
12 CPPUNIT_TEST_SUITE_REGISTRATION( StjeBemcEnergySumCalculatorBuilderTest );
13 
14 void StjeBemcEnergySumCalculatorBuilderTest::setUp()
15 {
16 
17 }
18 
19 void StjeBemcEnergySumCalculatorBuilderTest::tearDown()
20 {
21 
22 }
23 
24 void StjeBemcEnergySumCalculatorBuilderTest::testBuildImp()
25 {
27  bool useBEMC = true;
28  CPPUNIT_ASSERT(dynamic_cast<StjeBemcEnergySumCalculatorImp*>(builder.build(useBEMC)));
29 }
30 
31 void StjeBemcEnergySumCalculatorBuilderTest::testBuildNull()
32 {
34  bool useBEMC = false;
35  CPPUNIT_ASSERT(dynamic_cast<StjeBemcEnergySumCalculatorNull*>(builder.build(useBEMC)));
36 }
37