From 29935181280fb471105f92934fed4305bddfec26 Mon Sep 17 00:00:00 2001 From: Scott Leberknight <174812+sleberknight@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:46:58 -0500 Subject: [PATCH] Add 'throws' to Javadoc in RecordedRequestAssertions * Describe the exception thrown by assertThat and assertThatRecordedRequest --- .../test/okhttp3/mockwebserver/RecordedRequestAssertions.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/kiwiproject/test/okhttp3/mockwebserver/RecordedRequestAssertions.java b/src/main/java/org/kiwiproject/test/okhttp3/mockwebserver/RecordedRequestAssertions.java index 5dc54fe..4bb44a6 100644 --- a/src/main/java/org/kiwiproject/test/okhttp3/mockwebserver/RecordedRequestAssertions.java +++ b/src/main/java/org/kiwiproject/test/okhttp3/mockwebserver/RecordedRequestAssertions.java @@ -38,6 +38,7 @@ private RecordedRequestAssertions(RecordedRequest recordedRequest) { * * @param recordedRequest the {@link RecordedRequest} to assert upon * @return this instance + * @throws IllegalArgumentException if {@code recordedRequest} is {@code null} */ public static RecordedRequestAssertions assertThat(RecordedRequest recordedRequest) { return assertThatRecordedRequest(recordedRequest); @@ -52,6 +53,7 @@ public static RecordedRequestAssertions assertThat(RecordedRequest recordedReque * * @param recordedRequest the {@link RecordedRequest} to assert upon * @return this instance + * @throws IllegalArgumentException if {@code recordedRequest} is {@code null} */ public static RecordedRequestAssertions assertThatRecordedRequest(RecordedRequest recordedRequest) { return new RecordedRequestAssertions(recordedRequest);