apps-android-commons/app/src
neslihanturan 8630ba8025
Add nearby presenter unit tests (#3615)
* init the test file

* Add tests to check if searchthisarea button action and checkbox actions are added after initialize test

* Add tests to locked unlocked nearby cases

* Add tests for null cases in updateMapAndList method

* Add test to check which locations are used to populate places, depending to LocationChangeType

* Add tests to test users position is not followed if blue dot (current location marker) is not visible

* Add tests to decide search this area method visibility on camera move

* Add tests for multi filteirng of placetypes

* add tests for single place type selection too

* Add tests to tests search view focus gain and bottom sheet visibilities

* Add tests for SearchCloseToCurrentLocation

* Remove two unneeded getter and setter for isNearbyLocked, use @VisibleForTesting annotation instead

* Add VisibleForTesting annotation to initializeNearbyOperations method so that it will be private by default

* Add missing tests

* Add tests for map updated case and add missing lines those are being tested

* Add some missind method verifications

* Create real latlang objects isntead of spying them

* Use a real presenter object instead of a spy

* Revert nonneeded @VisibleForTest annotations, instead reach via lockUnlock method

* Reduce code repetitions

* Do not call a test from another test method

* Add some more tests

* Fix minor issues
2020-07-17 19:32:16 +10:00
..
androidTest/java/fr/free/nrw/commons Fix compilation errors while trying to run instrumentation tests. (#3850) 2020-06-30 02:42:47 +10:00
beta/res/values Fix conflict between different product flavors (#1726) 2018-07-20 02:03:28 +10:00
betaDebug #2643: Remove unused resource files (#2641) 2019-03-18 22:47:29 +05:30
main Localisation updates from https://translatewiki.net. 2020-07-14 10:14:27 +02:00
prod/res/values Fix conflict between different product flavors (#1726) 2018-07-20 02:03:28 +10:00
prodRelease/play/release-notes/en-US With release notes directory 2019-03-10 16:56:10 +05:30
test Add nearby presenter unit tests (#3615) 2020-07-17 19:32:16 +10:00