| 236 | } |
| 237 | |
| 238 | int testRemoveAll() |
| 239 | { |
| 240 | MITK_TEST_OUTPUT(<< "Starting Test: ######### R e m o v e A l l #########"); |
| 241 | |
| 242 | unsigned int numPos = m_Service->GetNumberOfPlanePositions(); |
| 243 | MITK_INFO << numPos; |
| 244 | |
| 245 | m_Service->RemoveAllPlanePositions(); |
| 246 | |
| 247 | bool error(true); |
| 248 | |
| 249 | error = (m_Service->GetNumberOfPlanePositions() != 0 || m_Service->GetPlanePosition(60) != nullptr); |
| 250 | |
| 251 | if (error) |
| 252 | { |
| 253 | MITK_TEST_CONDITION(m_Service->GetNumberOfPlanePositions() == 0, "Testing remove all pos"); |
| 254 | MITK_TEST_CONDITION(m_Service->GetPlanePosition(60) == nullptr, "Testing remove all pos"); |
| 255 | return EXIT_FAILURE; |
| 256 | } |
| 257 | return EXIT_SUCCESS; |
| 258 | } |
| 259 | |
| 260 | int mitkPlanePositionManagerTest(int, char *[]) |
| 261 | { |
no test coverage detected