Protected Member Functions | |
Entity_test () | |
virtual | ~Entity_test () |
virtual void | SetUp () |
virtual void | TearDown () |
void | foo (Entity x) |
void | copyConstructorTestCore (Entity &b) |
void | assignmentOperatorTestCore (Entity &a, Entity &b) |
container_test::Entity_test::Entity_test | ( | ) | [inline, protected] |
virtual container_test::Entity_test::~Entity_test | ( | ) | [inline, protected, virtual] |
void container_test::Entity_test::assignmentOperatorTestCore | ( | Entity & | a, | |
Entity & | b | |||
) | [inline, protected] |
00106 { 00107 // Invoke assignment method. 00108 cout << "Before assignment a = b" << endl; 00109 cout << " a " << a << endl; 00110 cout << " b " << b << endl; 00111 a = b; 00112 cout << "After a " << a << endl; 00113 EXPECT_TRUE(a.compareKeyTo(b) == 0); 00114 00115 // a and b should be independent objects. Again, testing my understanding. 00116 EXPECT_NE(&a, &b); 00117 00118 // keyAsString members should be independent objects 00119 EXPECT_NE(&(a.getKeyAsString()), &(b.getKeyAsString())); 00120 }
void container_test::Entity_test::copyConstructorTestCore | ( | Entity & | b | ) | [inline, protected] |
00085 { 00086 Entity* a = NULL; 00087 00088 // Execute copy constructor explicitly. 00089 cout << "Before copy constructor a = new Entity(b)" << endl; 00090 cout << " a is NULL" << endl; 00091 cout << " b " << b << endl; 00092 a = new Entity(b); 00093 cout << "After a " << *a << endl; 00094 00095 EXPECT_TRUE(a->compareKeyTo(b) == 0); 00096 00097 // a and b should be independent objects. Again, testing my understanding. 00098 EXPECT_NE(a, &b); 00099 00100 // keyAsString members should be independent objects 00101 EXPECT_NE(&(a->getKeyAsString()), &(b.getKeyAsString())); 00102 00103 delete a; 00104 }
void container_test::Entity_test::foo | ( | Entity | x | ) | [inline, protected] |
virtual void container_test::Entity_test::SetUp | ( | ) | [inline, protected, virtual] |
virtual void container_test::Entity_test::TearDown | ( | ) | [inline, protected, virtual] |