?????????????????Android???MVP?????????????????????????????????????д????????ж?????????????????????????????????????м???????????????????????????????????????飬?????????????????????????????????????????????????????????д????????????????????????????????????????????д???м?????????????????????????????????????????Ρ????????????????MVP?????????????????????????????????????·??????????????顣
????????????м???????????
?????????????????????????????????????????????????????????檔
????1?????????
????????????????????????????д???????????MVC????MVP???????????????????????? ??todo-mvp??????????????????????????????????????????????MVP?????Э???????????????????????????????????????
????Presenter???????????????????????????????????????????????漰???????·???????????????????????????????????????????????????????????????????????V???M????????
????Model????????????????????????????????????P?????????????????????????????????
????View??????????????????????????
????2????????
??????????????????????????????????View??е?????????Σ?????????????????????????????????????????ù????????????????????????Espresso?????????View???????????????????????Presenter???????View??Model?????????????????????????????View???????????MVP??????????
?????????м????????????????????????????????????????????????
??????1???????????????в???
??????2?????????????в????????get??set??????
??????3??MVP????????????????P?????????????????????
??????????????????????????MVP????е????е???????????????????????androidTest?μ??androidTestMock?μ??test?μ????в?????????????????????????????????????????????????????????
????????androidTest????μ????
????V?????????????——AppNavigationTest
???????????ò??????????????????????DrawerLayout???????????Item?????Activity???????в????
???????壺??????????ζ?DrawerLayout????м?????????????
??????1??clickOnStatisticsNavigationItem_ShowsStatisticsScreen
??????Left Drawer->???Statistics???->????StatisticsActivity?????
??????2??clickOnListNavigationItem_ShowsListScreen
??????Left Drawer->???Statistics???->??Left Drawer->???TO-DO list???->????TasksActivity?????
??????3??clickOnAndroidHomeIcon_OpensNavigation
??????????ActionBar??icon???й????Left Drawer
????V???????????????——TasksScreenTest
???????????ò???????????????б???????????????湦???????????????????????????????????????????????????????????б?????????????????????????????????????????
???????壺???????????????м???????????????????
??????1??clickAddTaskButton_opensAddTaskUi
????????????->???????Activity?????
??????2??addTaskToTasksList
??????????1??TO-DO????????б??->???????1????
??????3??editTask
??????????1??TO-DO????????б??->?????Item????????->????????->???????2->???????->???????1??????????2????
??????4??markTaskAsComplete
??????????????CheckBox??????????->?????????????All/Active/Completed????????????????????
??????5??markTaskAsActive
???????????????Active?????????????
??????6??showAllTasks
???????2??????->????All???->??????????????????????
??????7??showActiveTasks
???????2??????->????Active???->??????????????????????
??????8??showCompletedTasks
???????2??????->?????????->????Completed???->??????????????????????
??????9??clearCompletedTasks
???????2??????->?????????->???Clear completed???->????????????????
??????10??createOneTask_deleteTask
???????1??????->?????????????????->??????->?????????????
??????11??createTwoTasks_deleteOneTask
????????2??????->?????2??->?????1?????????2????????
??????12??markTaskAsCompleteOnDetailScreen_taskIsCompleteInList
????????1??????->?????????????????->?????????->????б??->???????????????
??????13??markTaskAsActiveOnDetailScreen_taskIsActiveInList
????????1??????->???б???????????->?????????????δ???->????б??->?????????δ?????
??????14??markTaskAsAcompleteAndActiveOnDetailScreen_taskIsActiveInList
????????1??????->???????????????checkbox????- ????б??->?????????δ?????
??????15??markTaskAsActiveAndCompleteOnDetailScreen_taskIsCompleteInList
????????1??????->?????????->???????????????checkbox????- ????б??->????????????
??????16??orientationChange_FilterActivePersists
????????1??????->?????????->????Active???->?????????????->?л???????->??????????????????
??????17??orientationChange_FilterCompletedPersists