use of org.eclipse.californium.core.coap.CoAP.Code in project mule-coap-connector by teslanet-nl.
the class InsecureClientTest method testInsecureClientPost.
@Test(timeout = 15000)
public void testInsecureClientPost() throws Exception {
MuleEventSpy spy = spyMessage();
Code call = Code.POST;
CoapClient client = getClient(getPath(call));
Request request = new Request(call);
request.setPayload("nothing important");
CoapResponse response = client.advanced(request);
assertNull("should not receive a response", response);
assertSpy(spy);
client.shutdown();
}
Aggregations