diff --git a/UnitTest.qrc b/UnitTest.qrc index 3332cf87698fa45ef6d3034f368cea05b7861e57..7d46cc26966de43e37a3f4f0c5bb4216b4098838 100644 --- a/UnitTest.qrc +++ b/UnitTest.qrc @@ -1,5 +1,6 @@ - + + src/MissionManager/UnitTest/SectionTest.plan src/MissionManager/UnitTest/MavCmdInfoCommon.json src/MissionManager/UnitTest/MavCmdInfoFixedWing.json src/MissionManager/UnitTest/MavCmdInfoMultiRotor.json diff --git a/src/MissionManager/MissionCommandTree.cc b/src/MissionManager/MissionCommandTree.cc index 42254c31e4324f8acb921f2319c3892ef85b6a34..9513a047929d29b28725a04ac3783457f26c6ead 100644 --- a/src/MissionManager/MissionCommandTree.cc +++ b/src/MissionManager/MissionCommandTree.cc @@ -38,12 +38,12 @@ void MissionCommandTree::setToolbox(QGCToolbox* toolbox) #ifdef UNITTEST_BUILD if (_unitTest) { // Load unit testing tree - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_GENERIC] = new MissionCommandList(":/json/unittest/MavCmdInfoCommon.json", true, this); - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_FIXED_WING] = new MissionCommandList(":/json/unittest/MavCmdInfoFixedWing.json", false, this); - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_QUADROTOR] = new MissionCommandList(":/json/unittest/MavCmdInfoMultiRotor.json", false, this); - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_VTOL_QUADROTOR] = new MissionCommandList(":/json/unittest/MavCmdInfoVTOL.json", false, this); - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_SUBMARINE] = new MissionCommandList(":/json/unittest/MavCmdInfoSub.json", false, this); - _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_GROUND_ROVER] = new MissionCommandList(":/json/unittest/MavCmdInfoRover.json", false, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_GENERIC] = new MissionCommandList(":/unittest/MavCmdInfoCommon.json", true, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_FIXED_WING] = new MissionCommandList(":/unittest/MavCmdInfoFixedWing.json", false, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_QUADROTOR] = new MissionCommandList(":/unittest/MavCmdInfoMultiRotor.json", false, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_VTOL_QUADROTOR] = new MissionCommandList(":/unittest/MavCmdInfoVTOL.json", false, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_SUBMARINE] = new MissionCommandList(":/unittest/MavCmdInfoSub.json", false, this); + _staticCommandTree[MAV_AUTOPILOT_GENERIC][MAV_TYPE_GROUND_ROVER] = new MissionCommandList(":/unittest/MavCmdInfoRover.json", false, this); } else { #endif // Load all levels of hierarchy diff --git a/src/MissionManager/PlanMasterControllerTest.cc b/src/MissionManager/PlanMasterControllerTest.cc index f52b5340083f1635a9c4ef4572ed9d14906de9ff..c27162bc3443dcfdef59d70111c33a05bda21ec4 100644 --- a/src/MissionManager/PlanMasterControllerTest.cc +++ b/src/MissionManager/PlanMasterControllerTest.cc @@ -40,13 +40,13 @@ void PlanMasterControllerTest::cleanup(void) void PlanMasterControllerTest::_testMissionFileLoad(void) { - _masterController->loadFromFile(":/json/unittest/OldFileFormat.mission"); + _masterController->loadFromFile(":/unittest/OldFileFormat.mission"); QCOMPARE(_masterController->missionController()->visualItems()->count(), 7); } void PlanMasterControllerTest::_testMissionPlannerFileLoad(void) { - _masterController->loadFromFile(":/json/unittest/MissionPlanner.waypoints"); + _masterController->loadFromFile(":/unittest/MissionPlanner.waypoints"); QCOMPARE(_masterController->missionController()->visualItems()->count(), 6); }