Skip to content

Commit 31f3960

Browse files
Remove unnecessary throws InterruptedException from test methods
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent a40b2a4 commit 31f3960

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

xapi-client/src/test/java/dev/learning/xapi/client/XapiClientMultipartTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void whenPostingStatementsWithTimestampAndAttachmentThenNoExceptionIsThrown()
328328

329329
@SuppressWarnings("null")
330330
@Test
331-
void whenGettingStatementWithAttachmentThenResponseIsExpected() throws InterruptedException {
331+
void whenGettingStatementWithAttachmentThenResponseIsExpected() {
332332

333333
// single statement with two attachments
334334
final var body =
@@ -370,7 +370,7 @@ void whenGettingStatementWithAttachmentThenResponseIsExpected() throws Interrupt
370370

371371
@SuppressWarnings("null")
372372
@Test
373-
void whenGettingStatementsWithAttachmentsThenResponseIsExpected() throws InterruptedException {
373+
void whenGettingStatementsWithAttachmentsThenResponseIsExpected() {
374374

375375
// two statements with overlapping attachments
376376
final var body =

xapi-client/src/test/java/dev/learning/xapi/client/XapiClientTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void whenGettingStatementThenPathIsExpected() throws InterruptedException {
102102
}
103103

104104
@Test
105-
void whenGettingStatementThenBodyIsInstanceOfStatement() throws InterruptedException {
105+
void whenGettingStatementThenBodyIsInstanceOfStatement() {
106106

107107
mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")
108108

@@ -1847,7 +1847,7 @@ void whenGettingActivityThenPathIsExpected() throws InterruptedException {
18471847
}
18481848

18491849
@Test
1850-
void whenGettingActivityThenBodyIsInstanceOfActivity() throws InterruptedException {
1850+
void whenGettingActivityThenBodyIsInstanceOfActivity() {
18511851

18521852
mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")
18531853

@@ -1896,7 +1896,7 @@ void whenGettingAgentsThenPathIsExpected() throws InterruptedException {
18961896
}
18971897

18981898
@Test
1899-
void whenGettingAgentsThenBodyIsInstanceOfPerson() throws InterruptedException {
1899+
void whenGettingAgentsThenBodyIsInstanceOfPerson() {
19001900

19011901
mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")
19021902

@@ -1951,7 +1951,7 @@ void whenGettingAboutThenPathIsExpected() throws InterruptedException {
19511951
}
19521952

19531953
@Test
1954-
void whenGettingAboutThenBodyIsInstanceOfAbout() throws InterruptedException {
1954+
void whenGettingAboutThenBodyIsInstanceOfAbout() {
19551955

19561956
mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")
19571957

0 commit comments

Comments
 (0)