1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
10 #include <anna/testing/TestTimer.hpp>
11 #include <anna/core/tracing/Logger.hpp>
17 #include <anna/testing/TestStep.hpp>
22 using namespace anna::testing;
24 void TestTimer::expire(anna::timex::Engine*)
25 throw(anna::RuntimeException) {
27 TestStep *step = getTestCaseStep();
33 string msg("TestTimer::expire | Completed TestStep:\n\n");
34 msg += step->asXMLString();
35 anna::Logger::debug(msg, ANNA_FILE_LOCATION);
39 const char* TestTimer::asText(const Type::_v type)
41 static const char* text [] = { "TimeLeft", "Delay" };
46 string TestTimer::asString() const
48 string result("TestTimer { ");
49 result += anna::timex::Transaction::asString();
51 result += asText(a_type);
53 // const TestStep *step = getTestCaseStep();
57 // result += step->asXMLString();
59 // result += " | step: <null>";
62 // switch(getType()) {
63 // case Type::TimeLeft:
64 // //result += " | xxxxx: <null>";
67 // //result += " | xxxxx: <null>";
71 return result += " }";