* mitkplanarPolygonTest tests the methods and behavior of mitk::PlanarPolygon with sub-tests: * * 1. Instantiation and basic tests, including feature evaluation * */
| 123 | * |
| 124 | */ |
| 125 | int mitkPlanarPolygonTest(int /* argc */, char * /*argv*/ []) |
| 126 | { |
| 127 | // always start with this! |
| 128 | MITK_TEST_BEGIN("planarPolygon") |
| 129 | |
| 130 | // create PlaneGeometry on which to place the planarPolygon |
| 131 | mitk::PlaneGeometry::Pointer planeGeometry = mitk::PlaneGeometry::New(); |
| 132 | planeGeometry->InitializeStandardPlane(100.0, 100.0); |
| 133 | |
| 134 | // ************************************************************************** |
| 135 | // 1. Instantiation and basic tests, including feature evaluation |
| 136 | mitk::PlanarPolygon::Pointer planarPolygon = mitk::PlanarPolygon::New(); |
| 137 | planarPolygon->SetPlaneGeometry(planeGeometry); |
| 138 | |
| 139 | // first test: did this work? |
| 140 | MITK_TEST_CONDITION_REQUIRED(planarPolygon.IsNotNull(), "Testing instantiation"); |
| 141 | |
| 142 | // Test placement of planarPolygon by control points |
| 143 | mitkPlanarPolygonTestClass::TestPlanarPolygonPlacement(planarPolygon); |
| 144 | |
| 145 | mitkPlanarPolygonTestClass::TestPlanarPolygonEditing(planarPolygon); |
| 146 | |
| 147 | // always end with this! |
| 148 | MITK_TEST_END(); |
| 149 | } |
nothing calls this directly
no test coverage detected