Skip to content

Commit 4ee5c20

Browse files
committed
Remove redundant 'throws' clauses
1 parent b2b75f5 commit 4ee5c20

37 files changed

Lines changed: 69 additions & 69 deletions

‎src/test/java/io/appium/java_client/android/AndroidAbilityToUseSupplierTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class AndroidAbilityToUseSupplierTest extends BaseAndroidTest {
4343
.moveTo(element(driver.findElementByAccessibilityId("Auto Complete")))
4444
.release();
4545

46-
@Test public void horizontalSwipingWithSupplier() throws Exception {
46+
@Test public void horizontalSwipingWithSupplier() {
4747
Activity activity = new Activity("io.appium.android.apis", ".view.Gallery1");
4848
driver.startActivity(activity);
4949
AndroidElement gallery = driver.findElementById("io.appium.android.apis:id/gallery");

‎src/test/java/io/appium/java_client/android/AndroidActivityTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
public class AndroidActivityTest extends BaseAndroidTest {
2525

26-
@Before public void setUp() throws Exception {
26+
@Before public void setUp() {
2727
Activity activity = new Activity("io.appium.android.apis", ".ApiDemos");
2828
driver.startActivity(activity);
2929
}

‎src/test/java/io/appium/java_client/android/AndroidDriverTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class AndroidDriverTest extends BaseAndroidTest {
5050
assertFalse(driver.isAppInstalled("foo"));
5151
}
5252

53-
@Test public void closeAppTest() throws InterruptedException {
53+
@Test public void closeAppTest() {
5454
driver.closeApp();
5555
driver.launchApp();
5656
assertEquals(".ApiDemos", driver.currentActivity());

‎src/test/java/io/appium/java_client/android/AndroidElementTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public class AndroidElementTest extends BaseAndroidTest {
3030

31-
@Before public void setup() throws Exception {
31+
@Before public void setup() {
3232
Activity activity = new Activity("io.appium.android.apis", ".ApiDemos");
3333
driver.startActivity(activity);
3434
}

‎src/test/java/io/appium/java_client/android/AndroidFunctionTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class AndroidFunctionTest extends BaseAndroidTest {
6464
return null;
6565
};
6666

67-
@BeforeClass public static void startWebViewActivity() throws Exception {
67+
@BeforeClass public static void startWebViewActivity() {
6868
if (driver != null) {
6969
Activity activity = new Activity("io.appium.android.apis", ".view.WebView1");
7070
driver.startActivity(activity);

‎src/test/java/io/appium/java_client/android/AndroidSearchingTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class AndroidSearchingTest extends BaseAndroidTest {
3030

3131
@Before
32-
public void setup() throws Exception {
32+
public void setup() {
3333
Activity activity = new Activity("io.appium.android.apis", ".ApiDemos");
3434
driver.startActivity(activity);
3535
}

‎src/test/java/io/appium/java_client/android/AndroidTouchTest.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
public 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)

‎src/test/java/io/appium/java_client/android/BaseAndroidTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BaseAndroidTest {
3434
/**
3535
* initialization.
3636
*/
37-
@BeforeClass public static void beforeClass() throws Exception {
37+
@BeforeClass public static void beforeClass() {
3838
service = AppiumDriverLocalService.buildDefaultService();
3939
service.start();
4040

‎src/test/java/io/appium/java_client/android/FingerPrintTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private void clickOnSecurity() {
9494
/**
9595
* enable system security which is required for finger print activation.
9696
*/
97-
@Before public void before() throws Exception {
97+
@Before public void before() {
9898
initDriver();
9999
clickOnSecurity();
100100
findElementByText("Screen lock").click();
@@ -124,7 +124,7 @@ private void clickOnSecurity() {
124124
/**
125125
* disabling pin lock mode.
126126
*/
127-
@After public void after() throws InterruptedException {
127+
@After public void after() {
128128
driver.quit();
129129

130130
initDriver();
@@ -137,4 +137,4 @@ private void clickOnSecurity() {
137137
clickOKInPopup();
138138
driver.quit();
139139
}
140-
}
140+
}

‎src/test/java/io/appium/java_client/android/IntentTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class IntentTest {
2020
/**
2121
* initialization.
2222
*/
23-
@BeforeClass public static void beforeClass() throws Exception {
23+
@BeforeClass public static void beforeClass() {
2424
service = AppiumDriverLocalService.buildDefaultService();
2525
service.start();
2626

@@ -49,7 +49,7 @@ public class IntentTest {
4949
}
5050

5151

52-
@Test public void startActivityWithIntent() throws Exception {
52+
@Test public void startActivityWithIntent() {
5353
Predicate<AndroidDriver> predicate = driver -> {
5454
Activity activity = new Activity("com.android.mms",
5555
".ui.ComposeMessageActivity")

0 commit comments

Comments
 (0)