Skip to content

Commit 44c9dc2

Browse files
committed
Remove unnecessary throws
1 parent 268f3f5 commit 44c9dc2

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Diff for: src/test/java/com/rabbitmq/client/impl/WorkPoolTests.java

+5-10
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public class WorkPoolTests {
4141

4242
/**
4343
* Test add work and remove work
44-
* @throws Exception untested
4544
*/
46-
@Test public void basicInOut() throws Exception {
45+
@Test public void basicInOut() {
4746
Object one = new Object();
4847
Object two = new Object();
4948

@@ -70,9 +69,8 @@ public class WorkPoolTests {
7069

7170
/**
7271
* Test add work when work in progress.
73-
* @throws Exception untested
7472
*/
75-
@Test public void workInWhileInProgress() throws Exception {
73+
@Test public void workInWhileInProgress() {
7674
Object one = new Object();
7775
Object two = new Object();
7876

@@ -98,9 +96,8 @@ public class WorkPoolTests {
9896

9997
/**
10098
* Test multiple work keys.
101-
* @throws Exception untested
10299
*/
103-
@Test public void interleavingKeys() throws Exception {
100+
@Test public void interleavingKeys() {
104101
Object one = new Object();
105102
Object two = new Object();
106103
Object three = new Object();
@@ -129,9 +126,8 @@ public class WorkPoolTests {
129126

130127
/**
131128
* Test removal of key (with work)
132-
* @throws Exception untested
133129
*/
134-
@Test public void unregisterKey() throws Exception {
130+
@Test public void unregisterKey() {
135131
Object one = new Object();
136132
Object two = new Object();
137133
Object three = new Object();
@@ -154,9 +150,8 @@ public class WorkPoolTests {
154150

155151
/**
156152
* Test removal of all keys (with work).
157-
* @throws Exception untested
158153
*/
159-
@Test public void unregisterAllKeys() throws Exception {
154+
@Test public void unregisterAllKeys() {
160155
Object one = new Object();
161156
Object two = new Object();
162157
Object three = new Object();

0 commit comments

Comments
 (0)