Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ui/espresso/CustomMatcherSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ dependencies {
androidTestImplementation "androidx.test.ext:junit:" + rootProject.extJUnitVersion;
androidTestImplementation "androidx.test:runner:" + rootProject.runnerVersion;
androidTestImplementation "androidx.test.espresso:espresso-core:" + rootProject.espressoVersion;
androidTestImplementation "org.robolectric:annotations:" + rootProject.robolectricVersion;

testImplementation "androidx.test:core:" + rootProject.coreVersion;
testImplementation "androidx.test.ext:junit:" + rootProject.extJUnitVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,13 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.LooperMode;
import org.robolectric.annotation.TextLayoutMode;

/**
* Tests for {@link MainActivity} showcasing the use of custom matchers (see
* {@link HintMatcher#withHint}).
*/
@RunWith(AndroidJUnit4.class)
@LargeTest
// Configure Robolectric to use the more realistic text layout and threading model.
// These annotations can be removed once this is default behavior in Robolectric
@TextLayoutMode(TextLayoutMode.Mode.REALISTIC)
@LooperMode(LooperMode.Mode.PAUSED)
public class HintMatchersTest {

private static final String INVALID_STRING_TO_BE_TYPED = "Earl Grey";
Expand Down Expand Up @@ -142,4 +136,4 @@ public void validation_resultIsIncorrect() {
onView(withId(R.id.inputValidationError)).check(matches(isDisplayed()));
onView(withId(R.id.inputValidationSuccess)).check(matches(not(isDisplayed())));
}
}
}
1 change: 0 additions & 1 deletion ui/espresso/FragmentScenarioSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:" + rootProject.espressoVersion
androidTestImplementation "androidx.fragment:fragment-testing:" + rootProject.androidxFragmentVersion
androidTestImplementation "com.google.truth:truth:" + rootProject.truthVersion
androidTestImplementation "org.robolectric:annotations:" + rootProject.robolectricVersion
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.LooperMode

/**
* A test using the androidx.test unified API, which can execute on an Android device or locally using Robolectric.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.LooperMode

/**
* A test using the androidx.test unified API, which can execute on an Android device or locally using Robolectric.
Expand Down
1 change: 0 additions & 1 deletion ui/espresso/IntentsBasicSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-intents:" + rootProject.espressoVersion;
androidTestImplementation "androidx.test.ext:truth:" + rootProject.extTruthVersion;
androidTestImplementation "androidx.test.ext:junit:" + rootProject.extJUnitVersion;
androidTestImplementation "org.robolectric:annotations:" + rootProject.robolectricVersion;

testImplementation "androidx.test:core:" + rootProject.coreVersion;
testImplementation "androidx.test.ext:junit:" + rootProject.extJUnitVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import static androidx.test.ext.truth.content.IntentSubject.assertThat;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.core.AllOf.allOf;
import static org.robolectric.annotation.TextLayoutMode.Mode.REALISTIC;

import android.app.Activity;
import android.content.Intent;
Expand All @@ -52,7 +51,6 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.TextLayoutMode;

@RunWith(AndroidJUnit4.class)
@LargeTest
Expand Down