Skip to content

Commit 5f79d35

Browse files
cushoncopybara-androidxtest
authored andcommitted
Import hamcrest/JavaHamcrest from GitHub.
The changes from `Iterable<? super Foo>` to `Iterable<? extends Foo>` are due to hamcrest/JavaHamcrest@242604a #MIGRATION_3P_JAVA_HAMCREST__DEFAULT - 3fa841d91fb61beec6565c5deff3a1854c46301c Revert version to 3.0-SNAPSHOT by Joe Schmetzer <[email protected]> - 4e2b71c59c0df5d6e21c7fed5ff78a07c11676b1 Add instructions for releasing to Maven Central by Joe Schmetzer <[email protected]> - 1adc3517d51b8a4691a69412778bde125ec04365 Fix javadoc title by Joe Schmetzer <[email protected]> - 68984b85e869df6a888fffcad87e4b676a8fc0ac Version 3.0 by Joe Schmetzer <[email protected]> - ca4dcfb28f04233f0e5747179e4572a62b980c4f Update CHANGES.md for v3.0 by Joe Schmetzer <[email protected]> - e4c5bdd4b5faef05c2e4fa17971b18302be55a30 Version 3.1-SNAPSHOT by Joe Schmetzer <[email protected]> - 21a05292a873c87424d7a3aca94a40babc899bc7 Javadoc cleanup (#420) by Joe Schmetzer <[email protected]> - 6bb90de5c5e114f58d862ed2ad336671c7f50fc1 Regenerate javadoc in documentation by Joe Schmetzer <[email protected]> - 3019f1bee22f9666f89ce286a1a1facc3c8eba7f Optional matchers (#421) by Sergey Chernov <[email protected]> - 01c776cc62189c26764e73f1a7c9ae813420a53f Fill in missing javadoc for Optional matchers by Joe Schmetzer <[email protected]> - b943810ea32c72d4ae94488e76be8318eaa3239d Derive version from git (#419) by Joe Schmetzer <[email protected]> - d11ad94270f0ecba4f5cdd3f84d084109e1eac58 Update CHANGES.md by Joe Schmetzer <[email protected]> - 242604acb03f0a5f70d2181e21aa59800676e976 Allow matching against polymorphic collections (#422) by Joe Schmetzer <[email protected]> - 246967c4c9b5f2de07a306bb63a803c2cb7eb4df Upgrade gradle version 8.9 -> 8.10.1 by Joe Schmetzer <[email protected]> - 581d6ba465a4505f35bbfd45424961f1da979e3a Migrate all tests to JUnit Jupiter (#424) by Joe Schmetzer <[email protected]> - 1bed2f5ff82cee0760c9dc508230c0d5ac7ce295 Bump org.junit.jupiter:junit-jupiter from 5.11.2 to 5.11.... by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> - 1e4230f1424a85cbc5e64cce1dbf08acb7fa0aa8 Add matcher for thrown exceptions in `Runnable` (#423) by Guillermo Gutiérrez <[email protected]> - ff2c25bbfca623b2ffe27965cbe2d2ad00c36a04 Matchers.throwsException will return interface by Joe Schmetzer <[email protected]> - 544a4cf4cf98e9080c13722ea0c664d4ac5d6f29 Update changes with thrown exceptions by Joe Schmetzer <[email protected]> - f0545a5189513ff2abdf226c061d18ac40e7510a Add throwsException matcher for throwable instance by Joe Schmetzer <[email protected]> - 5dc01127c073923824c2202db1f1c85ea502a074 Restore public constructors for compatibility (#428) by Joe Schmetzer <[email protected]> PiperOrigin-RevId: 698081489
1 parent 9bb3ee6 commit 5f79d35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

espresso/intents/java/androidx/test/espresso/intent/api/current_public.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ package androidx.test.espresso.intent {
7575
method public static org.hamcrest.Matcher<android.content.Intent!>! anyPermission();
7676
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermission(String!);
7777
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(java.lang.String!...!);
78-
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(org.hamcrest.Matcher<java.lang.Iterable<java.lang.String!>!>!);
78+
method public static org.hamcrest.Matcher<android.content.Intent!>! hasPermissions(org.hamcrest.Matcher<java.lang.Iterable<? extends java.lang.String!>!>!);
7979
field public static final String ACTION_REQUEST_PERMISSIONS = "android.content.pm.action.REQUEST_PERMISSIONS";
8080
}
8181

@@ -129,7 +129,7 @@ package androidx.test.espresso.intent.matcher {
129129
method public static org.hamcrest.Matcher<android.content.Intent!>! hasAction(String!);
130130
method public static org.hamcrest.Matcher<android.content.Intent!>! hasAction(org.hamcrest.Matcher<java.lang.String!>!);
131131
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(java.util.Set<java.lang.String!>!);
132-
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(org.hamcrest.Matcher<? extends java.lang.Iterable<? super java.lang.String!>!>!);
132+
method public static org.hamcrest.Matcher<android.content.Intent!>! hasCategories(org.hamcrest.Matcher<? extends java.lang.Iterable<? extends java.lang.String!>!>!);
133133
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(android.content.ComponentName!);
134134
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(String!);
135135
method public static org.hamcrest.Matcher<android.content.Intent!>! hasComponent(org.hamcrest.Matcher<android.content.ComponentName!>!);

espresso/intents/java/androidx/test/espresso/intent/matcher/IntentMatchers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static Matcher<Intent> hasCategories(Set<String> categories) {
8686
}
8787

8888
public static Matcher<Intent> hasCategories(
89-
final Matcher<? extends Iterable<? super String>> categoriesMatcher) {
89+
final Matcher<? extends Iterable<? extends String>> categoriesMatcher) {
9090
checkNotNull(categoriesMatcher);
9191
return new TypeSafeMatcher<Intent>() {
9292
@Override

espresso/intents/java/androidx/test/espresso/intent/matcher/UriMatchers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static Matcher<Uri> hasParamWithValue(
182182
checkNotNull(paramName);
183183
checkNotNull(paramVal);
184184
final Matcher<QueryParamEntry> qpe = queryParamEntry(paramName, paramVal);
185-
final Matcher<Iterable<? super QueryParamEntry>> matcherImpl = hasItem(qpe);
185+
final Matcher<Iterable<? extends QueryParamEntry>> matcherImpl = hasItem(qpe);
186186

187187
return new TypeSafeMatcher<Uri>() {
188188

@@ -207,7 +207,7 @@ public void describeTo(Description description) {
207207

208208
private static Matcher<QueryParamEntry> queryParamEntry(
209209
final Matcher<String> paramName, final Matcher<String> paramVal) {
210-
final Matcher<Iterable<? super String>> valMatcher = hasItem(paramVal);
210+
final Matcher<Iterable<? extends String>> valMatcher = hasItem(paramVal);
211211

212212
return new TypeSafeMatcher<QueryParamEntry>(QueryParamEntry.class) {
213213

0 commit comments

Comments
 (0)