2323public class AndroidTouchTest extends BaseAndroidTest {
2424
2525 @ Before
26- public void setUp () throws Exception {
26+ public void setUp () {
2727 driver .resetApp ();
2828 }
2929
30- @ Test public void dragNDropByElementTest () throws Exception {
30+ @ Test public void dragNDropByElementTest () {
3131 Activity activity = new Activity ("io.appium.android.apis" , ".view.DragAndDropDemo" );
3232 driver .startActivity (activity );
3333 WebElement dragDot1 = driver .findElement (By .id ("io.appium.android.apis:id/drag_dot_1" ));
@@ -44,7 +44,7 @@ public void setUp() throws Exception {
4444 assertNotEquals ("Drag text empty" , "" , dragText .getText ());
4545 }
4646
47- @ Test public void dragNDropByElementAndDurationTest () throws Exception {
47+ @ Test public void dragNDropByElementAndDurationTest () {
4848 Activity activity = new Activity ("io.appium.android.apis" , ".view.DragAndDropDemo" );
4949 driver .startActivity (activity );
5050 WebElement dragDot1 = driver .findElement (By .id ("io.appium.android.apis:id/drag_dot_1" ));
@@ -63,7 +63,7 @@ public void setUp() throws Exception {
6363 assertNotEquals ("Drag text empty" , "" , dragText .getText ());
6464 }
6565
66- @ Test public void dragNDropByCoordinatesTest () throws Exception {
66+ @ Test public void dragNDropByCoordinatesTest () {
6767 Activity activity = new Activity ("io.appium.android.apis" , ".view.DragAndDropDemo" );
6868 driver .startActivity (activity );
6969 AndroidElement dragDot1 = driver .findElement (By .id ("io.appium.android.apis:id/drag_dot_1" ));
@@ -83,7 +83,7 @@ public void setUp() throws Exception {
8383 assertNotEquals ("Drag text empty" , "" , dragText .getText ());
8484 }
8585
86- @ Test public void dragNDropByCoordinatesAndDurationTest () throws Exception {
86+ @ Test public void dragNDropByCoordinatesAndDurationTest () {
8787 Activity activity = new Activity ("io.appium.android.apis" , ".view.DragAndDropDemo" );
8888 driver .startActivity (activity );
8989 AndroidElement dragDot1 = driver .findElement (By .id ("io.appium.android.apis:id/drag_dot_1" ));
@@ -105,7 +105,7 @@ public void setUp() throws Exception {
105105 assertNotEquals ("Drag text empty" , "" , dragText .getText ());
106106 }
107107
108- @ Test public void pressByCoordinatesTest () throws Exception {
108+ @ Test public void pressByCoordinatesTest () {
109109 Activity activity = new Activity ("io.appium.android.apis" , ".view.Buttons1" );
110110 driver .startActivity (activity );
111111 Point point =
@@ -119,7 +119,7 @@ public void setUp() throws Exception {
119119 .findElementById ("io.appium.android.apis:id/button_toggle" ).getText ());
120120 }
121121
122- @ Test public void pressByElementTest () throws Exception {
122+ @ Test public void pressByElementTest () {
123123 Activity activity = new Activity ("io.appium.android.apis" , ".view.Buttons1" );
124124 driver .startActivity (activity );
125125 new TouchAction (driver )
@@ -169,7 +169,7 @@ public void setUp() throws Exception {
169169 assertEquals (time , chronometer .getText ());
170170 }
171171
172- @ Test public void horizontalSwipingTest () throws Exception {
172+ @ Test public void horizontalSwipingTest () {
173173 Activity activity = new Activity ("io.appium.android.apis" , ".view.Gallery1" );
174174 driver .startActivity (activity );
175175
@@ -190,7 +190,7 @@ public void setUp() throws Exception {
190190 .findElementsByClassName ("android.widget.ImageView" ).size ());
191191 }
192192
193- @ Test public void multiTouchTest () throws Exception {
193+ @ Test public void multiTouchTest () {
194194 Activity activity = new Activity ("io.appium.android.apis" , ".view.Buttons1" );
195195 driver .startActivity (activity );
196196 TouchAction press = new TouchAction (driver )
0 commit comments