Package org.mokai.types.mock

Examples of org.mokai.types.mock.MockConfigurableConnector


    config.setPath(path);

    config.load();

    // check that we have created two connectors
    verify(delegator).addConnector(eq("test-1"), eq(new MockConfigurableConnector("test1", 3)));
    verify(delegator).addConnector(eq("test-2"), eq(new MockConfigurableConnector("test2", 5)));

    // check that the maxConcurrentMsgs to the ConnectorService
    verify(connectorService1).setMaxConcurrentMsgs(10);
    verify(connectorService2).setMaxConcurrentMsgs(1);
View Full Code Here


    acceptors.add(new MockConfigurableAcceptor("test1", 1));

    List<Action> actions = new ArrayList<Action>();
    actions.add(new MockConfigurableAction("test1", 1));

    ConnectorService connectorService = mockConnectorService("test", 1000, new MockConfigurableConnector("test", 0),
        acceptors, actions, actions, actions);

    ConfigDelegator delegator = mock(ConfigDelegator.class);
    when(delegator.getConnectors())
      .thenReturn(Collections.singletonList(connectorService));
View Full Code Here

TOP

Related Classes of org.mokai.types.mock.MockConfigurableConnector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.