@@ -398,7 +398,7 @@ void givenApiResponseIsEmptyWhenPostingStatementThenMissingResponseBodyException
398398 .definition (d -> d .addName (Locale .ENGLISH , "Simple Statement" )))));
399399
400400 // Then MissingResponseBodyException Is Thrown
401- assertThrows (MissingResponseBodyException .class , () -> response . block () );
401+ assertThrows (MissingResponseBodyException .class , response :: block );
402402
403403 }
404404
@@ -418,7 +418,7 @@ void givenApiResponseIsBadRequestWhenPostingStatementThenBadRequestIsThrown() {
418418 .definition (d -> d .addName (Locale .ENGLISH , "Simple Statement" )))));
419419
420420 // Then BadRequest Is Thrown
421- assertThrows (BadRequest .class , () -> response . block () );
421+ assertThrows (BadRequest .class , response :: block );
422422
423423 }
424424
@@ -438,7 +438,7 @@ void givenApiResponseIsInternalServerErrorWhenPostingStatementThenInternalServer
438438 .definition (d -> d .addName (Locale .ENGLISH , "Simple Statement" )))));
439439
440440 // Then InternalServerError Is Thrown
441- assertThrows (InternalServerError .class , () -> response . block () );
441+ assertThrows (InternalServerError .class , response :: block );
442442
443443 }
444444
@@ -512,14 +512,14 @@ void whenGettingVoidedStatementWithAttachmentsThenPathIsExpected() throws Interr
512512 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" ));
513513
514514 // When Getting Voided Statement With Attachments
515- client .getStatement (r -> r .id ("4df42866-40e7-45b6-bf7c-8d5fccbdccd6" ).attachments (true ))
515+ client .getVoidedStatement (r -> r .id ("4df42866-40e7-45b6-bf7c-8d5fccbdccd6" ).attachments (true ))
516516 .block ();
517517
518518 final var recordedRequest = mockWebServer .takeRequest ();
519519
520520 // Then Path Is Expected
521521 assertThat (recordedRequest .getPath (),
522- is ("/statements?statementId =4df42866-40e7-45b6-bf7c-8d5fccbdccd6&attachments=true" ));
522+ is ("/statements?voidedStatementId =4df42866-40e7-45b6-bf7c-8d5fccbdccd6&attachments=true" ));
523523 }
524524
525525 @ Test
@@ -530,15 +530,15 @@ void whenGettingVoidedStatementWithCanonicalFormatThenPathIsExpected()
530530
531531 // When Getting Voided Statement With Canonical Format
532532 client
533- .getStatement (
533+ .getVoidedStatement (
534534 r -> r .id ("4df42866-40e7-45b6-bf7c-8d5fccbdccd6" ).format (StatementFormat .CANONICAL ))
535535 .block ();
536536
537537 final var recordedRequest = mockWebServer .takeRequest ();
538538
539539 // Then Path Is Expected
540540 assertThat (recordedRequest .getPath (),
541- is ("/statements?statementId =4df42866-40e7-45b6-bf7c-8d5fccbdccd6&format=canonical" ));
541+ is ("/statements?voidedStatementId =4df42866-40e7-45b6-bf7c-8d5fccbdccd6&format=canonical" ));
542542 }
543543
544544 // Get Statements
@@ -791,8 +791,7 @@ void whenGettingASingleStateWithoutRegistrationThenPathIsExpected() throws Inter
791791 }
792792
793793 @ Test
794- void givenStateContentTypeIsTextPlainWhenGettingStateThenBodyIsInstanceOfString ()
795- throws InterruptedException {
794+ void givenStateContentTypeIsTextPlainWhenGettingStateThenBodyIsInstanceOfString () {
796795
797796 // Given State Content Type Is Text Plain
798797 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" ).setBody ("Hello World!" )
@@ -814,8 +813,7 @@ void givenStateContentTypeIsTextPlainWhenGettingStateThenBodyIsInstanceOfString(
814813 }
815814
816815 @ Test
817- void givenStateContentTypeIsTextPlainWhenGettingStateThenBodyIsExpected ()
818- throws InterruptedException {
816+ void givenStateContentTypeIsTextPlainWhenGettingStateThenBodyIsExpected () {
819817
820818 // Given State Content Type Is Text Plain
821819 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" ).setBody ("Hello World!" )
@@ -1304,8 +1302,7 @@ void whenGettingMultipleStatesWithoutRegistrationThenPathIsExpected()
13041302 }
13051303
13061304 @ Test
1307- void givenMultipleStatesExistWhenGettingMultipleStatesThenBodyIsInstanceOfStringArray ()
1308- throws InterruptedException {
1305+ void givenMultipleStatesExistWhenGettingMultipleStatesThenBodyIsInstanceOfStringArray () {
13091306
13101307 // Given Multiple States Exist
13111308 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" )
@@ -1326,8 +1323,7 @@ void givenMultipleStatesExistWhenGettingMultipleStatesThenBodyIsInstanceOfString
13261323 }
13271324
13281325 @ Test
1329- void givenMultipleStatesExistWhenGettingMultipleStatesThenBodyIsExpected ()
1330- throws InterruptedException {
1326+ void givenMultipleStatesExistWhenGettingMultipleStatesThenBodyIsExpected () {
13311327
13321328 // Given Multiple States Exist
13331329 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" )
@@ -2002,8 +1998,7 @@ void whenGettingASingleActivityProfileThenPathIsExpected() throws InterruptedExc
20021998 }
20031999
20042000 @ Test
2005- void givenActivityProfileContentTypeIsTextPlainWhenGettingActivityProfileThenBodyIsInstanceOfString ()
2006- throws InterruptedException {
2001+ void givenActivityProfileContentTypeIsTextPlainWhenGettingActivityProfileThenBodyIsInstanceOfString () {
20072002
20082003 // Given ActivityProfile Content Type Is Text Plain
20092004 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" ).setBody ("Hello World!" )
@@ -2022,8 +2017,7 @@ void givenActivityProfileContentTypeIsTextPlainWhenGettingActivityProfileThenBod
20222017 }
20232018
20242019 @ Test
2025- void givenActivityProfileContentTypeIsTextPlainWhenGettingActivityProfileThenBodyIsExpected ()
2026- throws InterruptedException {
2020+ void givenActivityProfileContentTypeIsTextPlainWhenGettingActivityProfileThenBodyIsExpected () {
20272021
20282022 // Given ActivityProfile Content Type Is Text Plain
20292023 mockWebServer .enqueue (new MockResponse ().setStatus ("HTTP/1.1 200 OK" ).setBody ("Hello World!" )
@@ -2363,7 +2357,7 @@ void givenApiResponseIsEmptyWhenGettingStatementIteratorThenMissingResponseBodyE
23632357 final var response = client .getStatementIterator ();
23642358
23652359 // Then MissingResponseBodyException Is Thrown
2366- assertThrows (MissingResponseBodyException .class , () -> response . block () );
2360+ assertThrows (MissingResponseBodyException .class , response :: block );
23672361
23682362 }
23692363
@@ -2490,8 +2484,7 @@ void whenGettingStatementIteratorAndProcessingItAsStreamThenRequestsAreExpected(
24902484 }
24912485
24922486 @ Test
2493- void givenEmptyStatementResultWhenGettingStatementIteratorThenHasNextIsFalse ()
2494- throws InterruptedException {
2487+ void givenEmptyStatementResultWhenGettingStatementIteratorThenHasNextIsFalse () {
24952488
24962489 // Given Empty StatementResult
24972490 final var body = """
@@ -2514,8 +2507,7 @@ void givenEmptyStatementResultWhenGettingStatementIteratorThenHasNextIsFalse()
25142507 }
25152508
25162509 @ Test
2517- void givenEmptyResponseWhenGettingStatementIteratorThenHasNextIsFalse ()
2518- throws InterruptedException {
2510+ void givenEmptyResponseWhenGettingStatementIteratorThenHasNextIsFalse () {
25192511
25202512 // Given Empty Response
25212513 // This response is technically invalid by the xAPI specification, but we cannot assume
@@ -2535,8 +2527,7 @@ void givenEmptyResponseWhenGettingStatementIteratorThenHasNextIsFalse()
25352527 }
25362528
25372529 @ Test
2538- void givenEmptyResponseWhenGettingStatementIteratorThenNextThrowsAnException ()
2539- throws InterruptedException {
2530+ void givenEmptyResponseWhenGettingStatementIteratorThenNextThrowsAnException () {
25402531
25412532 // Given Empty Response
25422533 final var body = """
@@ -2554,7 +2545,7 @@ void givenEmptyResponseWhenGettingStatementIteratorThenNextThrowsAnException()
25542545 final var iterator = client .getStatementIterator ().block ();
25552546
25562547 // Then Next Throws An Exception
2557- assertThrows (NoSuchElementException .class , () -> iterator . next () );
2548+ assertThrows (NoSuchElementException .class , iterator :: next );
25582549
25592550 }
25602551
0 commit comments