public static String getNewPortNumber(String fullName, String simpleName) { removeNames(fullName, simpleName); return getPortNumber(fullName, simpleName); } public static String getPortNumber(String fullName, String simpleName) {
/** * Starts the server inProcess */ public static boolean launchServer(Class<?> clz, Map<String, String> props, String[] args) { return launchServer(clz, props, args, true); }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } } }
protected static String allocatePort(Class<?> cls) { return TestUtil.getPortNumber(cls); } protected static String allocatePort(Class<?> cls, int count) {
public void updateWsdl(Bus b, String wsdlLocation) { updateWsdlExtensors(b, wsdlLocation, brokerUrl1, getEncodedBrokerURL()); }
protected void updateAddressPort(Object o, String port) throws NumberFormatException, MalformedURLException { TestUtil.updateAddressPort(o, port); }
public static String getNewPortNumber(String name) { return getNewPortNumber(name, name); }
private OutputMonitorThread launchOutputMonitorThread(final InputStream in, final PrintStream out) { OutputMonitorThread t = new OutputMonitorThread(in, out); t.start(); return t; } private class OutputMonitorThread extends Thread {
public void createBus() throws Exception { createBus(null); }
protected void setAddress(Object o, String address) { TestUtil.setAddress(o, address); }
public void stop() throws Exception { tearDown(); } public void tearDown() throws Exception {
public static Bus createStaticBus() throws Exception { return createStaticBus(null); }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } }
protected static String allocatePort(Class<?> cls) { return TestUtil.getPortNumber(cls); } protected static String allocatePort(Class<?> cls, int i) {
/** * Starts the server inProcess */ public static boolean launchServer(Class<?> clz) { return launchServer(clz, true); }
protected static String allocatePort(String s) { return TestUtil.getPortNumber(s); } protected static String allocatePort(Class<?> cls) {
protected static String allocatePort(Class<?> cls, int i) { return TestUtil.getPortNumber(cls, i); }
public static String getPortNumber(String name) { return getPortNumber(name, name); }
protected static String allocatePort(Class<?> cls, int count) { return TestUtil.getPortNumber(cls, count); }