Update to using newer android.support.test libraries.

com.android.support.test🏃1.0.0
com.android.support.test:rules:1.0.0
com.android.support.test.espresso:espresso-core:3.0.0
com.android.support.test.espresso:espresso-contrib:3.0.0

Additionally:
- removed the usage of internal espresso apis.
- fixed PostMessageTest that was using ServiceTestRule incorrectly.
- added workaround to AndroidManifest.xml for test packages that use
  mockito

Test: ./gradlew assembleAndroidTest works
Change-Id: I7a512e00844e9caefc5f26928f87c8441fc1289a
PiperOrigin-RevId: 177486346
This commit is contained in:
Aurimas Liutikas 2017-11-30 14:52:43 -05:00 committed by Daniel Nizri
parent 5d3098956c
commit 5cf32903ef

View File

@ -22,8 +22,8 @@ ext {
targetSdkVersion = 27
supportVersion = '27.0.2'
testRunnerVersion = '0.6-alpha'
espressoVersion = '2.3-alpha'
testRunnerVersion = '1.0.0'
espressoVersion = '3.0.0'
// Enforce the use of prebuilt dependencies in all sub-projects. This is
// required for the doclava dependency.