Skip to content

Commit

Permalink
For mozilla-mobile#3893 - Moving WebserverRule to support-test
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketsroger committed Aug 7, 2019
1 parent 6784ad0 commit 4e18862
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/support/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies {
implementation Dependencies.kotlin_coroutines

implementation Dependencies.androidx_test_junit
implementation Dependencies.testing_mockwebserver
implementation Dependencies.testing_mockito
implementation (Dependencies.testing_robolectric) {
exclude group: 'org.apache.maven'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.mozilla.samples.browser.rules
package mozilla.components.support.test.rules

import android.os.Handler
import android.os.Looper
Expand Down
2 changes: 2 additions & 0 deletions samples/browser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ dependencies {
implementation Dependencies.androidx_core_ktx
implementation Dependencies.androidx_constraintlayout

testImplementation project(':support-test')

androidTestImplementation project(':support-android-test')
androidTestImplementation Dependencies.androidx_test_core
androidTestImplementation Dependencies.androidx_test_runner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import androidx.test.rule.ActivityTestRule
import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.UiSelector
import mozilla.components.support.android.test.leaks.LeakDetectionRule
import mozilla.components.support.test.rules.WebserverRule
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.mozilla.samples.browser.rules.WebserverRule
import java.util.concurrent.TimeUnit

private const val INITIAL_WAIT_SECONDS = 5L
Expand Down

0 comments on commit 4e18862

Please sign in to comment.