This commit is contained in:
Dennis Guse
2021-08-23 20:29:48 +02:00
parent 5981340bb9
commit d5cfd118f6
11 changed files with 28 additions and 17 deletions
@@ -143,7 +143,7 @@ public class EspressoDeleteTrackTest {
private static Matcher<View> childAtPosition(
final Matcher<View> parentMatcher, final int position) {
return new TypeSafeMatcher<View>() {
return new TypeSafeMatcher<>() {
@Override
public void describeTo(Description description) {
description.appendText("Child at position " + position + " in parent ");
@@ -160,13 +160,15 @@ public class EspressoDeleteTrackTest {
}
public static Matcher<View> withListSize (final int size) {
return new TypeSafeMatcher<View> () {
@Override public boolean matchesSafely (final View view) {
return ((ListView) view).getCount () == size;
return new TypeSafeMatcher<>() {
@Override
public boolean matchesSafely(final View view) {
return ((ListView) view).getCount() == size;
}
@Override public void describeTo (final Description description) {
description.appendText ("ListView should have " + size + " items");
@Override
public void describeTo(final Description description) {
description.appendText("ListView should have " + size + " items");
}
};
}