diff --git a/Modules/PhotoacousticsAlgorithms/test/CMakeLists.txt b/Modules/PhotoacousticsAlgorithms/test/CMakeLists.txt new file mode 100644 index 0000000000..153cd81e2e --- /dev/null +++ b/Modules/PhotoacousticsAlgorithms/test/CMakeLists.txt @@ -0,0 +1 @@ +MITK_CREATE_MODULE_TESTS() diff --git a/Modules/PhotoacousticsAlgorithms/test/files.cmake b/Modules/PhotoacousticsAlgorithms/test/files.cmake new file mode 100644 index 0000000000..b107e288cf --- /dev/null +++ b/Modules/PhotoacousticsAlgorithms/test/files.cmake @@ -0,0 +1,7 @@ +set(MODULE_TESTS + mitkPhotoacousticMotionCorrectionFilterTest.cpp + ) + +set(RESOURCE_FILES + + ) diff --git a/Modules/PhotoacousticsAlgorithms/test/mitkPhotoacousticMotionCorrectionFilterTest.cpp b/Modules/PhotoacousticsAlgorithms/test/mitkPhotoacousticMotionCorrectionFilterTest.cpp new file mode 100644 index 0000000000..2c40d3d290 --- /dev/null +++ b/Modules/PhotoacousticsAlgorithms/test/mitkPhotoacousticMotionCorrectionFilterTest.cpp @@ -0,0 +1,59 @@ +/*=================================================================== + + The Medical Imaging Interaction Toolkit (MITK) + + Copyright (c) German Cancer Research Center, + Division of Medical and Biological Informatics. + All rights reserved. + + This software is distributed WITHOUT ANY WARRANTY; without + even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. + + See LICENSE.txt or http://www.mitk.org for details. + + ===================================================================*/ + +#include +#include + +#include + +class mitkPhotoacousticMotionCorrectionFilterTestSuite : public mitk::TestFixture +{ + CPPUNIT_TEST_SUITE(mitkPhotoacousticMotionCorrectionFilterTestSuite); + MITK_TEST(testSomething); + CPPUNIT_TEST_SUITE_END(); + +private: + mitk::PhotoacousticMotionCorrectionFilter::Pointer filter; + mitk::Image::Pointer image; + +public: + void setUp() override { + // get the filter I need + filter = mitk::PhotoacousticMotionCorrectionFilter::New(); + // get a 3d mitk image + image = mitk::Image::New(); + unsigned int * dimensions = new unsigned int[3] {2, 2, 2,}; + mitk::PixelType pt = mitk::MakeScalarPixelType(); + image->Initialize(pt, 3, dimensions); + delete[] dimensions; + double * data = new double[8]; + image->SetVolume(data); + delete[] data; + } + + void tearDown() override { + } + + void testSomething() { + CPPUNIT_ASSERT(true); + } + + void testSettingFirstInput() { + + } +}; + +MITK_TEST_SUITE_REGISTRATION(mitkPhotoacousticMotionCorrectionFilter)