Fix warnings in eclipse
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/411dff10 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/411dff10 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/411dff10 Branch: refs/heads/3.1.x-fixes Commit: 411dff107d089001ffa836bc196f91ab873f76cf Parents: 40e31a9 Author: Daniel Kulp <[email protected]> Authored: Fri Feb 26 10:41:56 2016 -0500 Committer: Daniel Kulp <[email protected]> Committed: Tue Mar 8 11:15:16 2016 -0500 ---------------------------------------------------------------------- .../interceptors/WebFaultOutInterceptorTestCase.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/411dff10/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java index de769b1..63003ea 100644 --- a/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java +++ b/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/interceptors/WebFaultOutInterceptorTestCase.java @@ -49,22 +49,16 @@ import org.junit.Assert; import org.junit.Test; /** - * Test case for https://bugzilla.redhat.com/show_bug.cgi?id=1177704 - * - * Scenario: - * * Let WebFaultOutInterceptor process a message containing a SoapFault. * * If SoapFault's exception or its' cause is instance of SOAPFaultException, values of SOAPFaultException.subCodes * should be copied to SoapFault.subCodes. - * - * @author Tomas Hofman ([email protected]) */ public class WebFaultOutInterceptorTestCase { private static final QName CODE = new QName("ns", "code"); private static final QName SUBCODE = new QName("ns", "subcode"); - private static final List SUBCODES = Collections.singletonList(SUBCODE); + private static final List<QName> SUBCODES = Collections.singletonList(SUBCODE); private WebFaultOutInterceptor interceptor = new WebFaultOutInterceptor(); @@ -78,6 +72,9 @@ public class WebFaultOutInterceptorTestCase { interceptor.handleMessage(message); + + + Assert.assertNotNull(soapFault.getSubCodes()); Assert.assertEquals(1, soapFault.getSubCodes().size()); Assert.assertEquals(SUBCODE, soapFault.getSubCodes().get(0)); @@ -133,6 +130,7 @@ public class WebFaultOutInterceptorTestCase { return message; } + @SuppressWarnings("rawtypes") // old SAAJ API doesn't have generics private class SOAPFaultStub implements SOAPFault { @Override @@ -161,7 +159,7 @@ public class WebFaultOutInterceptorTestCase { } @Override - public Iterator getFaultSubcodes() { + public Iterator<QName> getFaultSubcodes() { return SUBCODES.iterator(); }
