Commit 16aac6aa authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: restored SuperElastixFilterTest after refactor

parent 5849385c
......@@ -115,8 +115,9 @@ SuperElastixFilter
{
msg << unusedInput << std::endl;
}
//itkExceptionMacro( << msg.str() )
throw std::runtime_error(msg.str());
itkExceptionMacro( << msg.str() )
//throw std::runtime_error(msg.str());
}
}
......@@ -144,8 +145,7 @@ SuperElastixFilter
{
msg << unusedOutput << std::endl;
}
//itkExceptionMacro( << msg.str() )
throw std::runtime_error(msg.str());
itkExceptionMacro( << msg.str() )
}
}
......
......@@ -182,7 +182,7 @@ TEST_F( SuperElastixFilterTest, TooManyInputs )
std::cout << "Create blueprint " << std::endl;
BlueprintPointer blueprint = BlueprintPointer( new Blueprint() );
blueprint->SetComponent( "Source_A", { { "NameOfClass", { "ItkImageSourceComponent" } } } );
blueprint->SetComponent("Source_A", { { "NameOfClass", { "ItkImageSourceComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
......@@ -208,8 +208,8 @@ TEST_F( SuperElastixFilterTest, TooManySources )
BlueprintPointer blueprint = BlueprintPointer( new Blueprint() );
blueprint->SetComponent( "Source_A", { { "NameOfClass", { "ItkImageSourceComponent" } } } );
blueprint->SetComponent( "Source_B", { { "NameOfClass", { "ItkImageSourceComponent" } } } );
blueprint->SetComponent("Source_A", { { "NameOfClass", { "ItkImageSourceComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
blueprint->SetComponent("Source_B", { { "NameOfClass", { "ItkImageSourceComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
......@@ -233,7 +233,7 @@ TEST_F( SuperElastixFilterTest, TooManyOutputs )
BlueprintPointer blueprint = BlueprintPointer( new Blueprint() );
blueprint->SetComponent( "Sink_A", { { "NameOfClass", { "ItkImageSinkComponent" } } } );
blueprint->SetComponent("Sink_A", { { "NameOfClass", { "ItkImageSinkComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
......@@ -256,8 +256,8 @@ TEST_F( SuperElastixFilterTest, TooManySinks )
BlueprintPointer blueprint = BlueprintPointer( new Blueprint() );
blueprint->SetComponent( "Sink_A", { { "NameOfClass", { "ItkImageSinkComponent" } } } );
blueprint->SetComponent( "Sink_B", { { "NameOfClass", { "ItkImageSinkComponent" } } } );
blueprint->SetComponent("Sink_A", { { "NameOfClass", { "ItkImageSinkComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
blueprint->SetComponent("Sink_B", { { "NameOfClass", { "ItkImageSinkComponent" } }, { "Dimensionality", { "3" } }, { "PixelType", { "double" } } });
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment