Commit d6852dcb7c570ae4691b828fbf77d8d566581160

Authored by Sergey Matvienko
1 parent 8601121e

test: assert not null COAP response instead NullPointerException (to clarify the test failure cause)

@@ -172,7 +172,9 @@ public abstract class AbstractCoapProvisionProtoDeviceTest extends AbstractCoapI @@ -172,7 +172,9 @@ public abstract class AbstractCoapProvisionProtoDeviceTest extends AbstractCoapI
172 172
173 private CoapResponse createCoapClientAndPublish() throws Exception { 173 private CoapResponse createCoapClientAndPublish() throws Exception {
174 byte[] provisionRequestMsg = createTestProvisionMessage(); 174 byte[] provisionRequestMsg = createTestProvisionMessage();
175 - return createCoapClientAndPublish(provisionRequestMsg); 175 + CoapResponse coapResponse = createCoapClientAndPublish(provisionRequestMsg);
  176 + Assert.assertNotNull("COAP response", coapResponse);
  177 + return coapResponse;
176 } 178 }
177 179
178 private CoapResponse createCoapClientAndPublish(byte[] provisionRequestMsg) throws Exception { 180 private CoapResponse createCoapClientAndPublish(byte[] provisionRequestMsg) throws Exception {