28 std::cout <<
"check ActionId";
29 if (action->GetActionId() != actionId)
31 std::cout <<
"[FAILED]" << std::endl;
34 std::cout <<
"[PASSED]" << std::endl;
41 std::cout <<
"try adding property BOOL and read them: ";
42 bool boolproperty =
dynamic_cast<mitk::BoolProperty *
>(action->GetProperty(
"boolproperty"))->GetValue();
43 if (boolproperty !=
true)
45 std::cout <<
"[FAILED]" << std::endl;
48 std::cout <<
"[PASSED]" << std::endl;
50 std::cout <<
"try adding property INT and read them: ";
52 intproperty =
dynamic_cast<mitk::IntProperty *
>(action->GetProperty(
"intproperty"))->GetValue();
53 if (intproperty != 10)
55 std::cout <<
"[FAILED]" << std::endl;
58 std::cout <<
"[PASSED]" << std::endl;
60 std::cout <<
"try adding property FLOAT and read them: ";
61 float floatproperty =
dynamic_cast<mitk::FloatProperty *
>(action->GetProperty(
"floatproperty"))->GetValue();
62 if (floatproperty != 10.05f)
64 std::cout <<
"[FAILED]" << std::endl;
67 std::cout <<
"[PASSED]" << std::endl;
73 std::cout <<
"[EVERYTHING PASSED]" << std::endl;
75 std::cout <<
"[TEST DONE]" << std::endl;
int mitkActionTest(int, char *[])
static Pointer New(int _arg)
static New method to use SmartPointer