Search in sources :

Example 11 with HttpsBatchMessage

use of com.microsoft.azure.sdk.iot.device.transport.https.HttpsBatchMessage in project azure-iot-sdk-java by Azure.

the class HttpsBatchMessageTest method getContentTypeReturnsCorrectContentType.

// Tests_SRS_HTTPSBATCHMESSAGE_11_011: [The function shall return 'application/vnd.microsoft.iothub.json'.]
@Test
public void getContentTypeReturnsCorrectContentType() {
    HttpsBatchMessage batchMsg = new HttpsBatchMessage();
    String testContentType = batchMsg.getContentType();
    final String expectedContentType = "application/vnd.microsoft.iothub.json";
    assertThat(testContentType, is(expectedContentType));
}
Also used : HttpsBatchMessage(com.microsoft.azure.sdk.iot.device.transport.https.HttpsBatchMessage) CoreMatchers.containsString(org.hamcrest.CoreMatchers.containsString) Test(org.junit.Test)

Aggregations

HttpsBatchMessage (com.microsoft.azure.sdk.iot.device.transport.https.HttpsBatchMessage)11 Test (org.junit.Test)11 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)8 NonStrictExpectations (mockit.NonStrictExpectations)6 MessageProperty (com.microsoft.azure.sdk.iot.device.MessageProperty)2 SizeLimitExceededException (javax.naming.SizeLimitExceededException)2 Message (com.microsoft.azure.sdk.iot.device.Message)1 HttpsSingleMessage (com.microsoft.azure.sdk.iot.device.transport.https.HttpsSingleMessage)1