Assert.assertEquals(processorType.getDescription(), "");
Assert.assertEquals(processorType.getConnectorClass(), MockConnector.class);
}
private PluginMechanism mockPluginMechanism() {
PluginMechanism pluginMechanism = mock(PluginMechanism.class);
Set<Class<? extends Acceptor>> acceptorClasses = new HashSet<Class<? extends Acceptor>>();
acceptorClasses.add(MockAcceptor.class);
when(pluginMechanism.loadTypes(Acceptor.class))
.thenReturn(acceptorClasses);
Set<Class<? extends Action>> actionClasses = new HashSet<Class<? extends Action>>();
actionClasses.add(MockAction.class);
when(pluginMechanism.loadTypes(Action.class))
.thenReturn(actionClasses);
Set<Class<? extends Connector>> receiverClasses = new HashSet<Class<? extends Connector>>();
receiverClasses.add(MockConnector.class);
when(pluginMechanism.loadTypes(Connector.class))
.thenReturn(receiverClasses);
Set<Class<? extends Processor>> processorClasses = new HashSet<Class<? extends Processor>>();
processorClasses.add(MockConnector.class);
when(pluginMechanism.loadTypes(Processor.class))
.thenReturn(processorClasses);
return pluginMechanism;
}