Skip to content

Commit 46ba66c

Browse files
committed
Explicitly set user and pass to null for unauthorized test
1 parent b335cd3 commit 46ba66c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/openapitools/client/api/MfaApiTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ public void badRequest() throws ApiException {
111111

112112
@Test
113113
public void unauthorizedRequest() throws ApiException {
114+
Basic.setUsername(null);
115+
Basic.setPassword(null);
116+
114117
CodeRequest request = new CodeRequest();
115118
request.setTo(USER_NUMBER);
116119
request.setFrom(BW_NUMBER);
@@ -123,6 +126,7 @@ public void unauthorizedRequest() throws ApiException {
123126
() -> api.generateMessagingCodeWithHttpInfo(BW_ACCOUNT_ID,
124127
request));
125128
assertThat(exception.getCode(), is(401));
129+
System.out.println(exception.getCode());
126130
}
127131

128132
@Test

0 commit comments

Comments
 (0)