00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 7837 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #include "mitkClassName.h" 00019 00020 #include "mitkTestingMacros.h" 00021 00022 #include <iostream> 00023 00032 int mitkClassNameTest(int /* argc */, char* /*argv*/[]) 00033 { 00034 // always start with this! 00035 MITK_TEST_BEGIN("ClassName") 00036 00037 // let's create an object of our class 00038 mitk::ClassName::Pointer myClassName = mitk::ClassName::New(); 00039 00040 // first test: did this work? 00041 // using MITK_TEST_CONDITION_REQUIRED makes the test stop after failure, since 00042 // it makes no sense to continue without an object. 00043 MITK_TEST_CONDITION_REQUIRED(myClassName.IsNotNull(),"Testing instantiation") 00044 00045 // write your own tests here and use the macros from mitkTestingMacros.h !!! 00046 // do not write to std::cout and do not return from this function yourself! 00047 00048 // always end with this! 00049 MITK_TEST_END() 00050 } 00051