Package org.apache.cxf.policytest.doubleit

Examples of org.apache.cxf.policytest.doubleit.DoubleItPortTypeHeader


                                                      getClass().getResource("alice.properties"));
        assertEquals(BigInteger.valueOf(10), pt.doubleIt(BigInteger.valueOf(5)));
    }
    @Test
    public void testCXF3452() throws Exception {
        DoubleItPortTypeHeader pt;
        pt = service.getDoubleItPortCXF3452();
        updateAddressPort(pt, PORT);
        ((BindingProvider)pt).getRequestContext().put(SecurityConstants.CALLBACK_HANDLER,
                                                      new KeystorePasswordCallback());
        ((BindingProvider)pt).getRequestContext().put(SecurityConstants.SIGNATURE_PROPERTIES,
                                                      getClass().getResource("alice.properties"));
        ((BindingProvider)pt).getRequestContext().put(SecurityConstants.ENCRYPT_PROPERTIES,
                                                      getClass().getResource("alice.properties"));
       
        DoubleIt di = new DoubleIt();
        di.setNumberToDouble(BigInteger.valueOf(5));
        assertEquals(BigInteger.valueOf(10), pt.doubleIt(di, 1).getDoubledNumber());
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.policytest.doubleit.DoubleItPortTypeHeader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.