Search in sources :

Example 21 with TypeCreationOptions

use of org.apache.cxf.aegis.type.TypeCreationOptions in project cxf by apache.

the class JaxbXmlParamTypeTest method setUp.

@Before
public void setUp() throws Exception {
    super.setUp();
    tm = new DefaultTypeMapping(null, DefaultTypeMapping.createDefaultTypeMapping(false, false));
    creator = new Java5TypeCreator();
    creator.setNextCreator(new DefaultTypeCreator());
    creator.setConfiguration(new TypeCreationOptions());
    tm.setTypeCreator(creator);
}
Also used : DefaultTypeMapping(org.apache.cxf.aegis.type.DefaultTypeMapping) DefaultTypeCreator(org.apache.cxf.aegis.type.DefaultTypeCreator) TypeCreationOptions(org.apache.cxf.aegis.type.TypeCreationOptions) Before(org.junit.Before)

Example 22 with TypeCreationOptions

use of org.apache.cxf.aegis.type.TypeCreationOptions in project cxf by apache.

the class AnnotatedTypeTest method testGetSetRequired.

@Test
public void testGetSetRequired() throws Exception {
    BeanType type = new BeanType(new AnnotatedTypeInfo(tm, BadBean.class, "urn:foo", new TypeCreationOptions()));
    type.setSchemaType(new QName("urn:foo", "BadBean"));
    assertFalse(type.getTypeInfo().getElements().iterator().hasNext());
}
Also used : BeanType(org.apache.cxf.aegis.type.basic.BeanType) QName(javax.xml.namespace.QName) TypeCreationOptions(org.apache.cxf.aegis.type.TypeCreationOptions) Test(org.junit.Test) AbstractAegisTest(org.apache.cxf.aegis.AbstractAegisTest)

Aggregations

TypeCreationOptions (org.apache.cxf.aegis.type.TypeCreationOptions)22 AbstractAegisTest (org.apache.cxf.aegis.AbstractAegisTest)14 Test (org.junit.Test)14 DefaultTypeMapping (org.apache.cxf.aegis.type.DefaultTypeMapping)10 QName (javax.xml.namespace.QName)8 AegisType (org.apache.cxf.aegis.type.AegisType)8 AegisContext (org.apache.cxf.aegis.AegisContext)6 Before (org.junit.Before)6 TypeMapping (org.apache.cxf.aegis.type.TypeMapping)4 BeanType (org.apache.cxf.aegis.type.basic.BeanType)3 StringType (org.apache.cxf.aegis.type.basic.StringType)3 Context (org.apache.cxf.aegis.Context)2 XmlMappedAttributeBean (org.apache.cxf.aegis.services.XmlMappedAttributeBean)2 DefaultTypeCreator (org.apache.cxf.aegis.type.DefaultTypeCreator)2 XMLTypeCreator (org.apache.cxf.aegis.type.XMLTypeCreator)2 CollectionType (org.apache.cxf.aegis.type.collection.CollectionType)2 XmlSchema (org.apache.ws.commons.schema.XmlSchema)2 XmlSchemaComplexType (org.apache.ws.commons.schema.XmlSchemaComplexType)2 XmlSchemaElement (org.apache.ws.commons.schema.XmlSchemaElement)2 XmlSchemaSequence (org.apache.ws.commons.schema.XmlSchemaSequence)2