Search in sources :

Example 6 with Delete

use of org.apache.cxf.ws.transfer.Delete in project cxf by apache.

the class DeleteTest method getDeletedStudent.

@Test(expected = SOAPFaultException.class)
public void getDeletedStudent() throws XMLStreamException {
    CreateResponse response = createStudent();
    Resource client = TestUtils.createResourceClient(response.getResourceCreated());
    client.delete(new Delete());
    client.get(new Get());
}
Also used : Delete(org.apache.cxf.ws.transfer.Delete) CreateResponse(org.apache.cxf.ws.transfer.CreateResponse) Get(org.apache.cxf.ws.transfer.Get) Resource(org.apache.cxf.ws.transfer.resource.Resource) Test(org.junit.Test)

Example 7 with Delete

use of org.apache.cxf.ws.transfer.Delete in project cxf by apache.

the class DeleteTest method deleteDeletedStudent.

@Test(expected = SOAPFaultException.class)
public void deleteDeletedStudent() throws XMLStreamException {
    CreateResponse response = createStudent();
    Resource client = TestUtils.createResourceClient(response.getResourceCreated());
    client.delete(new Delete());
    client.delete(new Delete());
}
Also used : Delete(org.apache.cxf.ws.transfer.Delete) CreateResponse(org.apache.cxf.ws.transfer.CreateResponse) Resource(org.apache.cxf.ws.transfer.resource.Resource) Test(org.junit.Test)

Aggregations

Delete (org.apache.cxf.ws.transfer.Delete)7 Resource (org.apache.cxf.ws.transfer.resource.Resource)7 Test (org.junit.Test)7 CreateResponse (org.apache.cxf.ws.transfer.CreateResponse)6 Get (org.apache.cxf.ws.transfer.Get)2 Server (org.apache.cxf.endpoint.Server)1 ReferenceParametersType (org.apache.cxf.ws.addressing.ReferenceParametersType)1 MemoryResourceManager (org.apache.cxf.ws.transfer.manager.MemoryResourceManager)1 ResourceManager (org.apache.cxf.ws.transfer.manager.ResourceManager)1 Element (org.w3c.dom.Element)1