Index: unittests/tst_views.cpp =================================================================== diff -u -r4fab8841b1040c8eaa406713ff9bdc8c65b7b6ac -ra3f457785f86bd41a4df1dd3c6ca7300d5fca38e --- unittests/tst_views.cpp (.../tst_views.cpp) (revision 4fab8841b1040c8eaa406713ff9bdc8c65b7b6ac) +++ unittests/tst_views.cpp (.../tst_views.cpp) (revision a3f457785f86bd41a4df1dd3c6ca7300d5fca38e) @@ -49,21 +49,22 @@ // try rejected v.adjustment_Accepted(false); - v.isPaused(true); + // SALINE_BOLUS_STATE_IDLE = 0, + // SALINE_BOLUS_STATE_WAIT_FOR_PUMPS_STOP + // SALINE_BOLUS_STATE_IN_PROGRESS, + // SALINE_BOLUS_STATE_MAX_DELIVERED, + // if not accepted and a reason passed then the parent should translate it and return v.adjustment_Reason(GuiRequestReasons::REQUEST_REJECT_REASON_INVALID_TREATMENT_STATE); QCOMPARE(v.text(), tr("REQUEST_REJECT_REASON_INVALID_TREATMENT_STATE")); - // if not accepted and not a reason passed then general message will be returned regarding the paused state - v.isPaused(true); - v.adjustment_Reason(GuiRequestReasons::REQUEST_REJECT_REASON_NONE); - QCOMPARE(v.text(), tr("Unable to Resume Ultrafiltration or already running")); + // if not accepted and not running + v.adjustment_Reason(GuiRequestReasons::REQUEST_REJECT_REASON_UF_NOT_IN_PROGESS); + QCOMPARE(v.text(), tr("REQUEST_REJECT_REASON_UF_NOT_IN_PROGESS")); - // if not accepted and not a reason passed then general message will be returned regarding the paused state - v.isPaused(false); - v.adjustment_Reason(GuiRequestReasons::REQUEST_REJECT_REASON_NONE); - QCOMPARE(v.text(), tr("Unable to Pause Ultrafiltration or already paused")); - v.isPaused(false); + // if not accepted and not paused + v.adjustment_Reason(GuiRequestReasons::REQUEST_REJECT_REASON_UF_NOT_PAUSED); + QCOMPARE(v.text(), tr("REQUEST_REJECT_REASON_UF_NOT_PAUSED")); } /*!