Package org.apache.cxf.configuration.foo

Examples of org.apache.cxf.configuration.foo.TpAddress


   
    @Test
    public void testAddressToStringOverride() throws Exception {
       
        TpAddress foo = new org.apache.cxf.configuration.foo.ObjectFactory().createTpAddress();

        Method method = foo.getClass().getMethod("toString");
        assertEquals("toString is overridden", foo.getClass(),
                     method.getDeclaringClass());
    
        TpAddressPresentation value = TpAddressPresentation.P_ADDRESS_PRESENTATION_ALLOWED;
        foo.setPresentation(value);
        String fooS = foo.toString();
        assertTrue("contains null", fooS.indexOf("null") != -1);
        assertTrue("contains P_ADDRESS_PRESENTATION_ALLOWED",
                   fooS.indexOf("P_ADDRESS_PRESENTATION_ALLOWED") != -1);
       
View Full Code Here

TOP

Related Classes of org.apache.cxf.configuration.foo.TpAddress

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.