PlasCom2  1.0
XPACC Multi-physics simluation application
AppTest.H
Go to the documentation of this file.
1 #include "Testing.H"
7 
8 namespace ix { namespace app {
9 
10  // The basic overaching test object for the primitive
11  // utilities
12  class testmanager : public test::manager<test::results>
13  {
14  public:
15  // void Prologue(){};
17  {
18  };
19 
20  // This runs all the tests
21  void Process(test::results &result){
22  Prologue();
23  Test__MobileParameters(result);
24  Epilogue();
25  }
26 
27  // This runs the tests named in a list
28  void ProcessTests(std::list<std::string> &test_names,test::results &result){
29  Prologue();
30  std::list<std::string>::iterator tni = test_names.begin();
31  while(tni != test_names.end())
32  {
33  std::string testname(*tni++);
34  if(testname == "MobileParameters")
35  Test__MobileParameters(result);
36  }
37  Epilogue();
38  }
39  };
40  };
41 };
virtual void Epilogue()
Clean up any test fixtures that need cleaning.
Definition: Testing.H:121
Defines MPI-specific parallel global and program classes.
Encapsulating class for collections of test results.
Definition: Testing.H:18
void ProcessTests(std::list< std::string > &test_names, test::results &result)
Process named tests from a list and populate a "results" object.
Definition: AppTest.H:28
Testing constructs for unit testing.
void Test__MobileParameters(test::results &result)
Definition: AppTest.H:16
void Process(test::results &result)
Process all tests and populate a "results" object.
Definition: AppTest.H:21
virtual void Prologue()
Set up the tests and any test fixture constructs.
Definition: Testing.H:91
Interface for a general testing object.
Definition: Testing.H:84