Package org.apache.cxf.configuration.foo

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


    @Test
    public void testBooleanGetter() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());

        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

        foo.getBooleanAttr();
    }
View Full Code Here


    @Test
    public void testFooDefaultValues() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

        // verify default values

        assertAttributeValuesWithoutDefault(foo);
        assertDefaultAttributeValues(foo);       
View Full Code Here

    public void testFooDefaultValues() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

        // verify default values

        assertAttributeValuesWithoutDefault(foo);
        assertDefaultAttributeValues(foo);       
View Full Code Here

    public void testFooDefaultValues() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();
       
        assertTrue("Foo should inhertit from AbstractConfigurableBeanBase",
                   foo instanceof AbstractConfigurableBeanBase);

        assertAttributeValuesWithoutDefault(foo);
View Full Code Here

        assertDefaultElementValues(foo);     
    }
   
    public void testProviders() {
        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();
        ConfigurationProvider provider = new ConfigurationProvider() {

            public Object getObject(String name) {
                if ("integerAttr".equals(name) || "integerAttrNoDefault".equals(name)) {
                    return BigInteger.TEN;
                }
                return null;
            }           
        };
       
       
        assertNull(foo.getIntegerAttrNoDefault());
        assertEquals(new BigInteger("111"), foo.getIntegerAttr());
        List<ConfigurationProvider> providers = foo.getFallbackProviders();
        assertNull(providers);
        providers = new ArrayList<ConfigurationProvider>();
        providers.add(provider);
        foo.setFallbackProviders(providers);
        assertEquals(BigInteger.TEN, foo.getIntegerAttrNoDefault());
        assertEquals(BigInteger.TEN, foo.getIntegerAttr());
        foo.setFallbackProviders(null);
        providers = foo.getOverwriteProviders();
        assertNull(providers);
        providers = new ArrayList<ConfigurationProvider>();
        providers.add(provider);
        foo.setOverwriteProviders(providers);
        assertEquals(BigInteger.TEN, foo.getIntegerAttrNoDefault());
        assertEquals(BigInteger.TEN, foo.getIntegerAttr());      
    }
View Full Code Here

    @Test
    public void testFooDefaultValues() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

        // verify default values

        assertAttributeValuesWithoutDefault(foo);
        assertDefaultAttributeValues(foo);       
View Full Code Here

public class ToStringTest extends Assert {

    @Test
    public void testFooToStringOverride() throws Exception {
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

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

    @Test
    public void testFooDefaultValues() throws Exception {

        DatatypeConverter.setDatatypeConverter(new DatatypeConverterImpl());
       
        Foo foo = new org.apache.cxf.configuration.foo.ObjectFactory().createFoo();

        // verify default values

        assertAttributeValuesWithoutDefault(foo);
        assertDefaultAttributeValues(foo);       
View Full Code Here

TOP

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

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.