Skip to content

Commit

Permalink
Remove instrumentedPackages workaround
Browse files Browse the repository at this point in the history
This is fixed by updating espresso to 3.5.0-alpha03.
  • Loading branch information
hoisie committed Nov 21, 2021
1 parent f30e9ba commit 58fbb03
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -6,7 +6,7 @@ errorproneVersion=2.9.0
errorproneJavacVersion=9+181-r4173-1

axtVersion=1.4.0
espressoVersion=3.4.0
espressoVersion=3.5.0-alpha03
axtJunitVersion=1.1.3

android.useAndroidX=true
Expand Down
Expand Up @@ -27,11 +27,6 @@

/** Simple tests to verify espresso APIs can be used on both Robolectric and device. */
@RunWith(AndroidJUnit4.class)
@Config(
instrumentedPackages = {
// required to access final members on androidx.loader.content.ModernAsyncTask
"androidx.loader.content"
})
public final class EspressoTest {

@Rule
Expand Down
Expand Up @@ -21,11 +21,6 @@
@RunWith(AndroidJUnit4.class)
@TextLayoutMode(Mode.REALISTIC)
@LooperMode(PAUSED)
@Config(
instrumentedPackages = {
// required to access final members on androidx.loader.content.ModernAsyncTask
"androidx.loader.content"
})
public class EspressoWithMenuTest {

@Test
Expand Down
Expand Up @@ -16,11 +16,6 @@
import org.robolectric.integration.axt.R;

/** Verify Espresso usage with paused looper */
@Config(
instrumentedPackages = {
// required to access final members on androidx.loader.content.ModernAsyncTask
"androidx.loader.content"
})
@RunWith(AndroidJUnit4.class)
public final class EspressoWithPausedLooperTest {

Expand Down
Expand Up @@ -17,11 +17,6 @@
/** Tests Espresso on Activities with {@link androidx.appcompat.widget.SwitchCompat}. */
@RunWith(AndroidJUnit4.class)
@TextLayoutMode(TextLayoutMode.Mode.REALISTIC)
@Config(
instrumentedPackages = {
// required to access final members on androidx.loader.content.ModernAsyncTask
"androidx.loader.content"
})
public class EspressoWithSwitchCompatTest {
@Test
public void switchCompatTest() {
Expand Down
Expand Up @@ -22,11 +22,6 @@
@RunWith(AndroidJUnit4.class)
@TextLayoutMode(Mode.REALISTIC)
@LooperMode(PAUSED)
@Config(
instrumentedPackages = {
// required to access final members on androidx.loader.content.ModernAsyncTask
"androidx.loader.content"
})
public class EspressoWithToolbarMenuTest {
@Test
public void appCompatToolbarMenuClick() {
Expand Down

0 comments on commit 58fbb03

Please sign in to comment.