@Override protected void sendTest3XcapRequest() throws IOException, URISyntaxException { // delete attribute XcapResponse deleteResponse = client.delete( getAttributeXcapURI(), getAssertedUserIdHeaders(client.getHeaderFactory(), user), null); assertTrue("Delete response must exists", deleteResponse != null); System.out.print(deleteResponse.toString()); assertTrue("Delete response code should be 200", deleteResponse.getCode() == 200); // set previous etag previousEtag = newEtag; newEtag = deleteResponse.getETag(); }
@Override protected void sendTest2XcapRequest() throws IOException, URISyntaxException { // replace attribute String attr = "sip:[email protected]"; XcapResponse putResponse = client.put( getAttributeXcapURI(), "application/xcap-att+xml", attr, getAssertedUserIdHeaders(client.getHeaderFactory(), user), null); assertTrue("Put response must exists", putResponse != null); System.out.print(putResponse.toString()); assertTrue( "Put response code should be 201, instead it is " + putResponse.getCode(), putResponse.getCode() == 201); // set etags previousEtag = newEtag; newEtag = putResponse.getETag(); }