Package org.mokai.plugin.jpf

Examples of org.mokai.plugin.jpf.JpfPluginMechanism.configure()


  private final String PLUGINS_PATH = "src/test/resources/plugins-test/";

  @Test
  public void testLoadNonExistentType() throws Exception {
    JpfPluginMechanism pluginMechanism = new JpfPluginMechanism(PLUGINS_PATH);
    pluginMechanism.configure();

    // check that null is returned when we try to load an unexistent class
    Class<?> nonExistentClass = pluginMechanism.loadClass("non.existent.class");
    Assert.assertNull(nonExistentClass);
View Full Code Here


  }

  @Test
  public void testLoadAcceptorTypes() throws Exception {
    JpfPluginMechanism pluginMechanism = new JpfPluginMechanism(PLUGINS_PATH);
    pluginMechanism.configure();

    // check that we can load the class
    Class<?> acceptorClass = pluginMechanism.loadClass("org.mokai.acceptor.TestAcceptor");
    Assert.assertNotNull(acceptorClass);
View Full Code Here

  }

  @Test
  public void testLoadActionTypes() throws Exception {
    JpfPluginMechanism pluginMechanism = new JpfPluginMechanism(PLUGINS_PATH);
    pluginMechanism.configure();

    // check that we can load the class
    Class<?> actionClass = (Class<?>) pluginMechanism.loadClass("org.mokai.action.TestAction");
    Assert.assertNotNull(actionClass);
View Full Code Here

  }

  @Test
  public void testLoadConnectorTypes() throws Exception {
    JpfPluginMechanism pluginMechanism = new JpfPluginMechanism(PLUGINS_PATH);
    pluginMechanism.configure();

    // check that we can load the class
    Class<?> receiverClass = (Class<?>) pluginMechanism.loadClass("org.mokai.connector.TestConnector");
    Assert.assertNotNull(receiverClass);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.