1 package org.iotivity.cloud.base.protocols.coap;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNotNull;
6 import org.iotivity.cloud.base.protocols.coap.enums.CoapStatus;
9 public class CoapResponseTest {
11 public void testCoapResponse() throws Exception {
12 CoapResponse response = new CoapResponse(CoapStatus.VALID);
13 assertNotNull(response);
17 public void testGetResponseCode() throws Exception {
18 CoapResponse response = new CoapResponse(CoapStatus.VALID);
19 assertEquals(response.getResponseCode(), CoapStatus.VALID);