is3g and isWifi functions added which checks 3g,wifi connection is available or not
Changes for respective messages
connection_off message is added
Removed print statements
comments removed
1. isWifi and is3g functions removed
2. Reused isOnline function for checking active network connection
3. sync will start only when network connectivity present
minor changes
shouldNotSyncDataWhenNetworkIsNotPresent :unit test added
removed intent from test
1. Made rapidFtrApplication field of RapidFtrActivity, so that spying rapidFtrActivity will use same application object
2. In isOnline() method, instead of getting application using 'getApplicationInstance' .. Used class field value
1. Intent removed
2. created spy of RapidFtrApplication and used same for rapidFtrActivity, so isOnline() works.
Refactoring
1. RapidFtrAplication field removed from rapidFtrApplication
2. Added helper(only getter) for rapidFtrApplication in rapidFtrActivity
Stubbed method in test for getRapidFtrApplication
Merge branch '1623_errorMsg' of git://github.com/Priti-Biyani/RapidFTR---Android into Priti-Biyani-1623_errorMsg
1623 | Subhas | Refactoring for #91
Merge pull request #92 from rdsubhas/story1623

#1623 - Refactor pull request