1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.soap;
18
19 public abstract class AbstractSoapEnvelopeTestCase extends AbstractSoapElementTestCase {
20
21 protected SoapEnvelope soapEnvelope;
22
23 protected final SoapElement createSoapElement() throws Exception {
24 soapEnvelope = createSoapEnvelope();
25 return soapEnvelope;
26 }
27
28 protected abstract SoapEnvelope createSoapEnvelope() throws Exception;
29
30 public void testGetHeader() throws Exception {
31 SoapHeader header = soapEnvelope.getHeader();
32 assertNotNull("No header returned", header);
33 }
34
35 public void testGetBody() throws Exception {
36 SoapBody body = soapEnvelope.getBody();
37 assertNotNull("No body returned", body);
38 }
39 }