Package org.mokai.type.impl

Examples of org.mokai.type.impl.PluginTypeLoader


*/
public class PluginTypeLoaderTest {

  @Test
  public void testLoadAcceptorTypes() throws Exception {
    TypeLoader typeLoader = new PluginTypeLoader(mockPluginMechanism());

    Set<AcceptorType> acceptorTypes =  typeLoader.loadAcceptorTypes();
    Assert.assertEquals(acceptorTypes.size(), 1);

    AcceptorType acceptorType = acceptorTypes.iterator().next();
    Assert.assertNotNull(acceptorType);
    Assert.assertEquals(acceptorType.getName(), "MockAcceptor");
View Full Code Here


    Assert.assertEquals(acceptorType.getAcceptorClass(), MockAcceptor.class);
  }

  @Test
  public void testLoadActionTyes() throws Exception {
    TypeLoader typeLoader = new PluginTypeLoader(mockPluginMechanism());

    Set<ActionType> actionTypes = typeLoader.loadActionTypes();
    Assert.assertEquals(1,actionTypes.size());

    ActionType actionType = actionTypes.iterator().next();
    Assert.assertNotNull(actionType);
    Assert.assertEquals(actionType.getName(), "");
View Full Code Here

    Assert.assertEquals(actionType.getActionClass(), MockAction.class);
  }

  @Test
  public void testLoadConnectorsTypes() throws Exception {
    TypeLoader typeLoader = new PluginTypeLoader(mockPluginMechanism());

    Set<ConnectorType> processorTypes = typeLoader.loadConnectorTypes();
    Assert.assertEquals(processorTypes.size(), 1);

    ConnectorType processorType = processorTypes.iterator().next();
    Assert.assertNotNull(processorType);
    Assert.assertEquals(processorType.getName(), "");
View Full Code Here

TOP

Related Classes of org.mokai.type.impl.PluginTypeLoader

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.