00001 #ifndef Command_Mock_h 00002 #define Command_Mock_h 00003 00004 #include <utils/common/Command.h> 00005 00006 // =========================================================================== 00007 // class definitions 00008 // =========================================================================== 00013 class CommandMock : public Command { 00014 public: 00017 CommandMock() throw(){ 00018 hasRun = false; 00019 } 00020 00022 ~CommandMock() throw(){} 00023 00025 SUMOTime execute(SUMOTime currentTime) throw(ProcessError) { 00026 hasRun = true; 00027 return currentTime; 00028 } 00029 00031 bool isExecuteCalled() { 00032 return hasRun; 00033 } 00034 00035 private: 00036 bool hasRun; 00037 00038 }; 00039 00040 00041 #endif 00042 00043 /****************************************************************************/ 00044
1.5.6