Tudat/JsonInterface/UnitTests/unitTestRotationModel.cpp
// Test 3: Spice rotation model
Test 3: Spice rotation model
Test 3 : Spice rotation model
BOOST_AUTO_TEST_CASE( test_json_rotationModel_spice )
{
    using namespace simulation_setup;
    using namespace json_interface;
    const std::shared_ptr< RotationModelSettings > fromFileSettings =
            parseJSONFile< std::shared_ptr< RotationModelSettings > >( INPUT( "spice" ) );
    const std::string originalFrame = "foo";
    const std::string targetFrame = "oof";
    const std::shared_ptr< RotationModelSettings > manualSettings =
            std::make_shared< RotationModelSettings >( spice_rotation_model,
                                                         originalFrame,
                                                         targetFrame );
    BOOST_CHECK_EQUAL_JSON( fromFileSettings, manualSettings );
}
BOOST_AUTO_TEST_CASE ( test_json_rotationModel_spice ) { using namespace simulation_setup ; using namespace json_interface ; const std :: shared_ptr < RotationModelSettings > fromFileSettings = parseJSONFile < std :: shared_ptr < RotationModelSettings > > ( INPUT ( " " ) ) ; const std :: string originalFrame = " " ; const std :: string targetFrame = " " ; const std :: shared_ptr < RotationModelSettings > manualSettings = std :: make_shared < RotationModelSettings > ( spice_rotation_model , originalFrame , targetFrame ) ; BOOST_CHECK_EQUAL_JSON ( fromFileSettings , manualSettings ) ; }
Test 3: Spice rotation model
Test 3 : Spice rotation model
// Create RotationModelSettings from JSON file // Create RotationModelSettings manually // Compare