Search in sources :

Example 1 with SaslHandler

use of com.microsoft.azure.sdk.iot.deps.transport.amqp.SaslHandler in project azure-iot-sdk-java by Azure.

the class SaslListenerImplTest method constructorSavesProvidedHandler.

// Tests_SRS_SASLLISTENERIMPL_34_001: [This constructor shall save the provided handler.]
@Test
public void constructorSavesProvidedHandler() {
    // act
    SaslListenerImpl saslListener = new SaslListenerImpl(mockedSaslHandler);
    // assert
    SaslHandler actualSaslHandler = Deencapsulation.getField(saslListener, "saslHandler");
    assertEquals(mockedSaslHandler, actualSaslHandler);
}
Also used : SaslHandler(com.microsoft.azure.sdk.iot.deps.transport.amqp.SaslHandler) SaslListenerImpl(com.microsoft.azure.sdk.iot.deps.transport.amqp.SaslListenerImpl) Test(org.junit.Test)

Aggregations

SaslHandler (com.microsoft.azure.sdk.iot.deps.transport.amqp.SaslHandler)1 SaslListenerImpl (com.microsoft.azure.sdk.iot.deps.transport.amqp.SaslListenerImpl)1 Test (org.junit.Test)1