@Test public void testConstructorAndSerializeFull() throws Exception { Map<String, String> descMap = new HashMap<String,String>(); descMap.put("name", "Test Desc"); descMap.put("endpoint", "myqueue"); descMap.put("brokerURL", "tcp: descMap.put("topDescriptor", "path"); descMap.put("description", "Optional Desc."); descMap.put("numberOfCASes", "10"); descMap.put("initialFsHeapSize", "10"); descMap.put("numberOfInstances", "2"); DeployDescriptorFactory factory = new DeployDescriptorFactory("_test_.xml", descMap); assertNotNull(factory); factory.serialize(); assertTrue(new File("_test_.xml").exists()); String result = DeployDescriptorFactoryTest.readFile("_test_.xml"); assertTrue(result.replaceAll("\r\n", "").replaceAll("\n", "").equals(XML_RESULT)); }
public void serialize() throws SAXException { start(); deployment(); end(); }
DeployDescriptorFactory { public void serialize() throws SAXException { start(); deployment(); end(); } }
DeployDescriptorFactory { public void serialize() throws SAXException { start(); deployment(); end(); } DeployDescriptorFactory(String fileName, Map<String, String> descMap); }
DeployDescriptorFactory { public void serialize() throws SAXException { start(); deployment(); end(); } DeployDescriptorFactory(String fileName, Map<String, String> descMap); void serialize(); }
DeployDescriptorFactory { public void serialize() throws SAXException { start(); deployment(); end(); } DeployDescriptorFactory(String fileName, Map<String, String> descMap); void serialize();  }