Skip to content

Commit 859ff25

Browse files
committed
Review feedback
1 parent d50e097 commit 859ff25

File tree

4 files changed

+8259
-6
lines changed

4 files changed

+8259
-6
lines changed

firestore/app/src/androidTest/java/com/google/firebase/example/fireeats/MainActivityTest.java

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,22 @@
3333
import static org.hamcrest.Matchers.allOf;
3434
import static org.hamcrest.Matchers.is;
3535

36-
@LargeTest @RunWith(AndroidJUnit4.class) public class MainActivityTest {
36+
@LargeTest
37+
@RunWith(AndroidJUnit4.class)
38+
public class MainActivityTest {
3739

38-
@Rule public ActivityTestRule<MainActivity> mActivityTestRule =
40+
@Rule
41+
public ActivityTestRule<MainActivity> mActivityTestRule =
3942
new ActivityTestRule<>(MainActivity.class, false, false);
4043

41-
@Before public void before() {
44+
@Before
45+
public void before() {
4246
// Sign out of any existing sessions
4347
FirebaseAuth.getInstance().signOut();
4448
}
4549

46-
@Test public void testAddItemsAndReview() throws InterruptedException {
50+
@Test
51+
public void testAddItemsAndReview() throws InterruptedException {
4752
mActivityTestRule.launchActivity(new Intent());
4853
Thread.sleep(2000);
4954

@@ -109,12 +114,14 @@ private static Matcher<View> childAtPosition(final Matcher<View> parentMatcher,
109114
final int position) {
110115

111116
return new TypeSafeMatcher<View>() {
112-
@Override public void describeTo(Description description) {
117+
@Override
118+
public void describeTo(Description description) {
113119
description.appendText("Child at position " + position + " in parent ");
114120
parentMatcher.describeTo(description);
115121
}
116122

117-
@Override public boolean matchesSafely(View view) {
123+
@Override
124+
public boolean matchesSafely(View view) {
118125
ViewParent parent = view.getParent();
119126
return parent instanceof ViewGroup && parentMatcher.matches(parent) && view.equals(
120127
((ViewGroup) parent).getChildAt(position));

0 commit comments

Comments
 (0)