@Before public void init() { orb = new MockORB(); agent = new TestableWrapperMapper(); initAgent(agent, AGENT_NAME); try { agent.goOnline(); sleep(100); } catch (ConnectionFailedException e) { e.printStackTrace(); } }
public void setup(Properties properties) { mtaPort++; mta = new TestableGatedHttpMTA(); mta.init(TESTMTA_NAME, properties); AgentConnector connector = new MockAgentConnector(orb, mta); mta.setConnector(connector); try { mta.goOnline(); } catch (ConnectionFailedException e) { e.printStackTrace(); } new MTAOnlineAssertWaiter().assertGetsOkay("MTA online", 5000, 100); sleep(1000); getLogger().info("====== Setup finished"); }