Package org.apache.ws.jaxme.test.misc.wildcards

Examples of org.apache.ws.jaxme.test.misc.wildcards.ListAttribute


        return asString(anyAttribute);
    }

    protected String getMarshalledListAttribute() throws JAXBException {
        ObjectFactory objectFactory = new ObjectFactory();
        ListAttribute listAttribute = objectFactory.createListAttribute();
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1");
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2");
        return asString(listAttribute);
    }
View Full Code Here


        String got = getMarshalledListAttribute();
        assertEquals(expect, got);
    }

    public void testUnmarshalListAttribute() throws Exception {
        ListAttribute listAttribute = (ListAttribute) getUnmarshalledElement(getMarshalledListAttribute());
        WildcardAttribute[] attrs = listAttribute.getAnyAttributeArray();
        assertEquals(new WildcardAttribute[]{
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1"),
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2")
    }, attrs);
    }
View Full Code Here

        return asString(anyAttribute);
    }

    protected String getMarshalledListAttribute() throws JAXBException {
        ObjectFactory objectFactory = new ObjectFactory();
        ListAttribute listAttribute = objectFactory.createListAttribute();
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1");
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2");
        return asString(listAttribute);
    }
View Full Code Here

        String got = getMarshalledListAttribute();
        assertEquals(expect, got);
    }

    public void testUnmarshalListAttribute() throws Exception {
        ListAttribute listAttribute = (ListAttribute) getUnmarshalledElement(getMarshalledListAttribute());
        WildcardAttribute[] attrs = listAttribute.getAnyAttributeArray();
        assertEquals(new WildcardAttribute[]{
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1"),
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2")
    }, attrs);
    }
View Full Code Here

        return asString(anyAttribute);
    }

    protected String getMarshalledListAttribute() throws JAXBException {
        ObjectFactory objectFactory = new ObjectFactory();
        ListAttribute listAttribute = objectFactory.createListAttribute();
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1");
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2");
        return asString(listAttribute);
    }
View Full Code Here

        String got = getMarshalledListAttribute();
        assertStringEquals(expect, got);
    }

    public void testUnmarshalListAttribute() throws Exception {
        ListAttribute listAttribute = (ListAttribute) getUnmarshalledElement(getMarshalledListAttribute());
        WildcardAttribute[] attrs = listAttribute.getAnyAttributeArray();
        assertEquals(new WildcardAttribute[]{
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1"),
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2")
    }, attrs);
    }
View Full Code Here

        return asString(anyAttribute);
    }

    protected String getMarshalledListAttribute() throws JAXBException {
        ObjectFactory objectFactory = new ObjectFactory();
        ListAttribute listAttribute = objectFactory.createListAttribute();
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1");
        listAttribute.setAnyAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2");
        return asString(listAttribute);
    }
View Full Code Here

        String got = getMarshalledListAttribute();
        assertStringEquals(expect, got);
    }

    public void testUnmarshalListAttribute() throws Exception {
        ListAttribute listAttribute = (ListAttribute) getUnmarshalledElement(getMarshalledListAttribute());
        WildcardAttribute[] attrs = listAttribute.getAnyAttributeArray();
        assertEquals(new WildcardAttribute[]{
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards/2", "foo"), "value 1"),
      new WildcardAttribute(new QName("http://ws.apache.org/jaxme/test/misc/wildcards", "bar"), "value 2")
    }, attrs);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.test.misc.wildcards.ListAttribute

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.