Exemplo n.º 1
0
  @Before
  public void init() {
    orb = new MockORB();

    agent = new TestableWrapperMapper();
    initAgent(agent, AGENT_NAME);

    try {
      agent.goOnline();
      sleep(100);
    } catch (ConnectionFailedException e) {
      e.printStackTrace();
    }
  }
Exemplo n.º 2
0
  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");
  }