зеркало из https://github.com/microsoft/kiota.git
workaround a regression
This commit is contained in:
Родитель
47d5d84f7d
Коммит
687a36cd1e
|
@ -22,11 +22,10 @@ public class BasicAPITest {
|
|||
);
|
||||
|
||||
Assertions.assertNotNull(exception.getCause());
|
||||
Assertions.assertTrue(exception.getCause() instanceof apisdk.models.Error);
|
||||
var error = (apisdk.models.Error) exception.getCause();
|
||||
Assertions.assertTrue(exception.getCause() instanceof com.microsoft.kiota.ApiException);
|
||||
var error = (com.microsoft.kiota.ApiException) exception.getCause();
|
||||
|
||||
Assertions.assertEquals("my-sample-id", error.getId());
|
||||
Assertions.assertEquals(123, error.getCode());
|
||||
Assertions.assertEquals(423, error.getResponseStatusCode());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче