Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / cloud / stack / src / test / java / org / iotivity / cloud / base / protocols / coap / CoapResponseTest.java
1 package org.iotivity.cloud.base.protocols.coap;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
5
6 import org.iotivity.cloud.base.protocols.coap.enums.CoapStatus;
7 import org.junit.Test;
8
9 public class CoapResponseTest {
10     @Test
11     public void testCoapResponse() throws Exception {
12         CoapResponse response = new CoapResponse(CoapStatus.VALID);
13         assertNotNull(response);
14     }
15
16     @Test
17     public void testGetResponseCode() throws Exception {
18         CoapResponse response = new CoapResponse(CoapStatus.VALID);
19         assertEquals(response.getResponseCode(), CoapStatus.VALID);
20     }
21 }