@@ -35,14 +35,6 @@ public void setUp() {
35
35
mainActivity = activityRule .getActivity ();
36
36
}
37
37
38
- void childScreenshotMethod (String screenshotName ) {
39
- NativeScreenshot .capture (screenshotName );
40
- }
41
-
42
- void parentScreenshotMethod (String screenshotName ) {
43
- childScreenshotMethod (screenshotName );
44
- }
45
-
46
38
@ Test
47
39
public void ensureAdditionWorks () {
48
40
onView (withId (R .id .buttonOne )).perform (click ());
@@ -57,7 +49,6 @@ public void ensureAdditionWorks() {
57
49
58
50
@ Test
59
51
public void ensureSubtractionWorks () {
60
- NativeScreenshot .capture ("pre_subtraction" );
61
52
onView (withId (R .id .buttonTwo )).perform (click ());
62
53
onView (withId (R .id .buttonTwo )).perform (click ());
63
54
onView (withId (R .id .buttonSubtract )).perform (click ());
@@ -77,7 +68,7 @@ public void ensureMultiplicationWorks() {
77
68
onView (withId (R .id .buttonEqual )).perform (click ());
78
69
onView (withId (R .id .editText )).check (matches (withText ("60" )));
79
70
80
- childScreenshotMethod ("post_multiplication" );
71
+ NativeScreenshot . capture ("post_multiplication" );
81
72
}
82
73
83
74
@ Test
@@ -89,6 +80,6 @@ public void ensureDivisionWorks() {
89
80
onView (withId (R .id .buttonEqual )).perform (click ());
90
81
onView (withId (R .id .editText )).check (matches (withText ("4" )));
91
82
92
- parentScreenshotMethod ("post_division" );
83
+ NativeScreenshot . capture ("post_division" );
93
84
}
94
85
}
0 commit comments