Skip to content

Commit

Permalink
Merge pull request #165 from alxbilger/test
Browse files Browse the repository at this point in the history
Fix tests compilation with respect to SOFA
  • Loading branch information
bakpaul authored Jan 22, 2025
2 parents fc0fc05 + e66722d commit 62bc9d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
10 changes: 5 additions & 5 deletions BeamAdapter_test/BeamInterpolation_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ namespace sofa
struct BeamInterpolationTest : public sofa::testing::BaseSimulationTest,
public ::testing::WithParamInterface<std::vector<std::string>>
{
void SetUp() override
void doSetUp() override
{
sofa::simpleapi::importPlugin("Sofa.Component.ODESolver.Backward");
sofa::simpleapi::importPlugin("Sofa.Component.LinearSolver.Iterative");
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
sofa::simpleapi::importPlugin("Sofa.Component.Topology.Container.Constant");
sofa::simpleapi::importPlugin(Sofa.Component.ODESolver.Backward);
sofa::simpleapi::importPlugin(Sofa.Component.LinearSolver.Iterative);
sofa::simpleapi::importPlugin(Sofa.Component.StateContainer);
sofa::simpleapi::importPlugin(Sofa.Component.Topology.Container.Constant);
sofa::simpleapi::importPlugin("BeamAdapter");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class InterventionalRadiologyController_test : public BaseTest
typedef typename Coord::value_type Real;
//typedef typename sofa::defaulttype::SolidTypes<Real>::Transform Transform;

void onSetUp() override
void doSetUp() override
{
sofa::simpleapi::importPlugin("BeamAdapter");
sofa::simpleapi::importPlugin("Sofa.Component.Topology.Container.Dynamic");
sofa::simpleapi::importPlugin("Sofa.Component.Topology.Container.Grid");
sofa::simpleapi::importPlugin("Sofa.Component.Constraint.Projective");
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
sofa::simpleapi::importPlugin(Sofa.Component.Topology.Container.Dynamic);
sofa::simpleapi::importPlugin(Sofa.Component.Topology.Container.Grid);
sofa::simpleapi::importPlugin(Sofa.Component.Constraint.Projective);
sofa::simpleapi::importPlugin(Sofa.Component.StateContainer);

m_root = sofa::simpleapi::createRootNode(sofa::simulation::getSimulation(), "root");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ struct BeamProjectionDifferenceMultiMappingTest : public sofa::Multi2Mapping_tes
typedef typename In2DataTypes::VecCoord In2VecCoord;
typedef typename OutDataTypes::VecCoord OutVecCoord;


void SetUp() override
{
}


BeamProjectionDifferenceMultiMapping* m_mapping;
sofa::component::fem::BeamInterpolation<sofa::defaulttype::Rigid3Types>* m_interpolation;
sofa::component::topology::container::constant::MeshTopology* m_topology;
Expand Down

0 comments on commit 62bc9d3

Please sign in to comment.