photo/mobile-android — pull request #250 by httpdispatch (2012-12-14 12:52:22+00:00)
Title: Parent project update

- GalleryFragment.GalleryAdapterExt: changed visibility to public so it
can be accessed from tests
- GalleryFragment.GalleryAdapterExt: getSuperCount is now public so it
can be accessed from tests
- MainActivity: added new constants ALBUMS_INDEX and TAGS_INDEX (for
tests)
- Preferences: getDefaultSharedPreferences now uses passed context
parameter if OpenPhotoApplication.getContext returns null (needed for
tests)
- Preferences: isLoggedIn method now returns true always if
CommonUtils.TEST_CASE static variable is true (used for tests)
- ImageWorker.BitmapWorkerTask added exception handling to the
doInBackground method
- ApiBase: added variation of execute method with additional parameters
(it can be called from tests)
- ApiBase: createHttpRequest now has additional baseUrl parameter
- UploadsProvider: fixed delete debug messages
- PhotoEndlessAdapter: fixed TAG constant
- CommonUtils: added TEST_CASE variable
- CommonUtils: checkOnline method now always return true if TEST_CASE
variable is true
- TrackerUtils: added SKIP_UNCAUGHT_SETUP static variable (used for
tests)
- TrackerUtils: setupTrackerUncaughtExceptionHandler method now does
nothing if SKIP_UNCAUGHT_SETUP is true
- GalleryActivityTest: reworked to test gallery tab instead of removed
GalleryActivity
- MainActivityTest: reworked accordingly to current MainActivity state.
Added tab selection test
- MockedInstrumentationTestCase: added setting CommonUtils.TEST_CASE
variable to true in the setUp method
- PhotoDetailsActivityTest, SettingsActivityTest,UploadActivityTest:
fixed running issues
- ApiBaseTest: fixed compilation issues, removed not actual tests and
reworked rest test accordingly to the new api call rules
- MockOpenPhotoApiTest: fixed compilation and running issues
- OpenPhotoApiTest: now it extends ApplicationTestCase
- OpenPhotoApiTest: added SKIP_UNCAUGHT_SETUP variable control to setUp
and tearDown methods
- OpenPhotoApiTest: fixed compilation and running issues
- OpenPhoto-Android-Test: buildpath replaced some jars
- OpenPhoto-Android-Test: android.jpg moved to assets
- OpenPhoto-Android-Test: added and updated some raw data files