Skip to content

Commit 6d84d6b

Browse files
committed
Add test for empty statusText in HttpResponse and remove null test
1 parent bc28a4e commit 6d84d6b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/org/juv25d/http/HttpResponseTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ void shouldReturnDefaultText() {
2525
}
2626

2727
@Test
28-
void shouldThrowExceptionWhenStatusTextIsNull() {
29-
assertThrows(NullPointerException.class, () -> response.setStatusText(null));
28+
void shouldAllowEmptyStatusText() {
29+
response.setStatusText("");
30+
assertEquals("", response.statusText());
3031
}
3132

3233
@Test

0 commit comments

Comments
 (0)