Search in sources :

Example 6 with AuthenticationParser

use of com.microsoft.azure.sdk.iot.deps.serializer.AuthenticationParser in project azure-iot-sdk-java by Azure.

the class AuthenticationParserTest method testAuthenticationTypeParserProperty.

// Tests_SRS_AUTHENTICATION_PARSER_34_002: [This method shall return the value of this object's authenticationTypeParser.]
// Tests_SRS_AUTHENTICATION_PARSER_34_008: [This method shall set the value of this object's authentication type equal to the provided value.]
@Test
public void testAuthenticationTypeParserProperty() {
    // arrange
    AuthenticationParser parser = new AuthenticationParser();
    // act
    parser.setType(AuthenticationTypeParser.SAS);
    // assert
    assertEquals(AuthenticationTypeParser.SAS, parser.getType());
}
Also used : AuthenticationParser(com.microsoft.azure.sdk.iot.deps.serializer.AuthenticationParser) Test(org.junit.Test)

Aggregations

AuthenticationParser (com.microsoft.azure.sdk.iot.deps.serializer.AuthenticationParser)6 Test (org.junit.Test)4 SymmetricKeyParser (com.microsoft.azure.sdk.iot.deps.serializer.SymmetricKeyParser)3 X509ThumbprintParser (com.microsoft.azure.sdk.iot.deps.serializer.X509ThumbprintParser)3 ExportImportDeviceParser (com.microsoft.azure.sdk.iot.deps.serializer.ExportImportDeviceParser)2 IotHubConnectionString (com.microsoft.azure.sdk.iot.service.IotHubConnectionString)2 URL (java.net.URL)2 ArrayList (java.util.ArrayList)2 Device (com.microsoft.azure.sdk.iot.service.Device)1 Module (com.microsoft.azure.sdk.iot.service.Module)1