test_class.file: taverna-wsdl-activity/src/test/java/org/apache/taverna/activities/wsdl/xmlsplitter/XMLSplitterConfigurationBeanBuilderTest.java
test_class.identifier: XMLSplitterConfigurationBeanBuilderTest
test_case.body: @Test
  	public void testBuildBeanForInput2() throws Exception {
  		String xml = "<s:extensions xmlns:s=\"http://org.embl.ebi.escience/xscufl/0.1alpha\"><s:complextype optional=\"false\" unbounded=\"false\" typename=\"Person\" name=\"person\" qname=\"{http://xfire.codehaus.org/BookService}&gt;personToString&gt;person\"><s:elements><s:complextype optional=\"true\" unbounded=\"false\" typename=\"Address\" name=\"address\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Person&gt;address\"><s:elements><s:basetype optional=\"true\" unbounded=\"false\" typename=\"string\" name=\"city\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Address&gt;city\" /><s:basetype optional=\"true\" unbounded=\"false\" typename=\"string\" name=\"road\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Address&gt;road\" /><s:basetype optional=\"true\" unbounded=\"false\" typename=\"int\" name=\"roadNumber\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Address&gt;roadNumber\" /></s:elements></s:complextype><s:basetype optional=\"true\" unbounded=\"false\" typename=\"int\" name=\"age\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Person&gt;age\" /><s:basetype optional=\"true\" unbounded=\"false\" typename=\"string\" name=\"firstName\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Person&gt;firstName\" /><s:basetype optional=\"true\" unbounded=\"false\" typename=\"string\" name=\"lastName\" qname=\"{http://complex.pojo.axis2.menagerie.googlecode}Person&gt;lastName\" /></s:elements></s:complextype></s:extensions>";
  		Element element = new SAXBuilder().build(new StringReader(xml)).getRootElement();
  
  		JsonNode bean = XMLSplitterConfigurationBeanBuilder.buildBeanForInput(element);
  		assertNotNull("The bean should not be null",bean);
  
  		assertEquals("There should be 4 inputs",4,bean.get("inputPorts").size());
  		assertEquals("There should be 1 output",1,bean.get("outputPorts").size());
  
  		assertEquals("The first input should be named address","address",bean.get("inputPorts").get(0).get("name").textValue());
  		assertEquals("The output should be named output","output",bean.get("outputPorts").get(0).get("name").textValue());
  
  		assertEquals("The type xml definition should match",xml,bean.get("wrappedType").textValue());
  	}
test_case.class_method_signature: XMLSplitterConfigurationBeanBuilderTest.testBuildBeanForInput2()
test_case.full_signature: @Test public void testBuildBeanForInput2()
test_case.identifier: testBuildBeanForInput2
test_case.invocations: getRootElement build buildBeanForInput assertNotNull assertEquals size get assertEquals size get assertEquals textValue get get get assertEquals textValue get get get assertEquals textValue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildBeanForInput2()
focal_class.declarator: JSON_NODE_FACTORY = JsonNodeFactory.instance
focal_class.modifier: private static final
focal_class.original_string: private static final JsonNodeFactory JSON_NODE_FACTORY = JsonNodeFactory.instance;
focal_class.type: JsonNodeFactory
focal_class.var_name: JSON_NODE_FACTORY
focal_class.file: taverna-wsdl-activity/src/main/java/org/apache/taverna/activities/wsdl/xmlsplitter/XMLSplitterConfigurationBeanBuilder.java
focal_class.identifier: XMLSplitterConfigurationBeanBuilder
focal_class.class_method_signature: XMLSplitterConfigurationBeanBuilder.buildBeanForInput(TypeDescriptor descriptor)
focal_class.full_signature: public static JsonNode buildBeanForInput(TypeDescriptor descriptor)
focal_class.identifier: buildBeanForInput
focal_class.modifiers: public static
focal_class.parameters: (TypeDescriptor descriptor)
focal_class.return: JsonNode
focal_class.signature: JsonNode buildBeanForInput(TypeDescriptor descriptor)
focal_class.class_method_signature: XMLSplitterConfigurationBeanBuilder.buildBeanForOutput(TypeDescriptor descriptor)
focal_class.full_signature: public static JsonNode buildBeanForOutput(TypeDescriptor descriptor)
focal_class.identifier: buildBeanForOutput
focal_class.modifiers: public static
focal_class.parameters: (TypeDescriptor descriptor)
focal_class.return: JsonNode
focal_class.signature: JsonNode buildBeanForOutput(TypeDescriptor descriptor)
focal_class.class_method_signature: XMLSplitterConfigurationBeanBuilder.buildBeanForInput(Element element)
focal_class.full_signature: public static JsonNode buildBeanForInput(Element element)
focal_class.identifier: buildBeanForInput
focal_class.modifiers: public static
focal_class.parameters: (Element element)
focal_class.return: JsonNode
focal_class.signature: JsonNode buildBeanForInput(Element element)
focal_class.class_method_signature: XMLSplitterConfigurationBeanBuilder.depthForDescriptor(TypeDescriptor desc)
focal_class.full_signature: private static int depthForDescriptor(TypeDescriptor desc)
focal_class.identifier: depthForDescriptor
focal_class.modifiers: private static
focal_class.parameters: (TypeDescriptor desc)
focal_class.return: int
focal_class.signature: int depthForDescriptor(TypeDescriptor desc)
focal_class.class_method_signature: XMLSplitterConfigurationBeanBuilder.buildBeanForOutput(Element element)
focal_class.full_signature: public static JsonNode buildBeanForOutput(Element element)
focal_class.identifier: buildBeanForOutput
focal_class.modifiers: public static
focal_class.parameters: (Element element)
focal_class.return: JsonNode
focal_class.signature: JsonNode buildBeanForOutput(Element element)
focal_method.body: public static JsonNode buildBeanForInput(TypeDescriptor descriptor) throws JDOMException, IOException {
  		Element element = XMLSplitterSerialisationHelper.typeDescriptorToExtensionXML(descriptor);
  		return buildBeanForInput(element);
  	}
focal_method.class_method_signature: XMLSplitterConfigurationBeanBuilder.buildBeanForInput(TypeDescriptor descriptor)
focal_method.full_signature: public static JsonNode buildBeanForInput(TypeDescriptor descriptor)
focal_method.identifier: buildBeanForInput
focal_method.invocations: typeDescriptorToExtensionXML buildBeanForInput
focal_method.modifiers: public static
focal_method.parameters: (TypeDescriptor descriptor)
focal_method.return: JsonNode
focal_method.signature: JsonNode buildBeanForInput(TypeDescriptor descriptor)