use of com.microsoft.identity.common.exception.BaseException in project microsoft-authentication-library-common-for-android by AzureAD.
the class IpcStrategyTests method testOperationNotSupportedOnClientSide.
protected void testOperationNotSupportedOnClientSide(@NonNull final BrokerOperationBundle bundle) {
final IIpcStrategy strategy = getStrategy();
try {
strategy.communicateToBroker(bundle);
Assert.fail("Operation should fail.");
} catch (BaseException e) {
Assert.assertTrue(e instanceof BrokerCommunicationException);
Assert.assertSame(((BrokerCommunicationException) e).getCategory(), OPERATION_NOT_SUPPORTED_ON_CLIENT_SIDE);
Assert.assertSame(((BrokerCommunicationException) e).getStrategyType(), strategy.getType());
}
}
Aggregations