Package org.mokai

Examples of org.mokai.ConnectorContext


    Assert.assertNotNull(bindResp);
    Assert.assertEquals(bindResp.getCommandStatus(), 0);
  }

  private ConnectorContext buildConnectorContext(String id) {
    ConnectorContext connectorContext = Mockito.mock(ConnectorContext.class);
    Mockito.when(connectorContext.getId()).thenReturn(id);

    return connectorContext;
  }
View Full Code Here


   * @param processor
   */
  private void injectConnectorContext(Connector processor) {

    // create an implementation of the ProcessorContext interface
    ConnectorContext context = new ConnectorContext() {

      @Override
      public String getId() {
        return id;
      }
View Full Code Here

    MockConnector processor = new MockConnector();
    new MockConnectorService("test", processor, resourceRegistry);

    Assert.assertNotNull(processor.getMessageStore());

    ConnectorContext context = processor.getContext();
    Assert.assertNotNull(context);
    Assert.assertEquals("test", context.getId());
  }
View Full Code Here

TOP

Related Classes of org.mokai.ConnectorContext

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.