Package com.dp.nebula.wormhole.common.interfaces

Examples of com.dp.nebula.wormhole.common.interfaces.IWriter


  private ILineReceiver lineReceiver;
 
  public static WriterThread getInstance(ILineReceiver lineReceiver, IParam param, String writerClassName,
      String writerPath, IPluginMonitor pm){
    try{
      IWriter writer = ReflectionUtil.createInstanceByDefaultConstructor(
          writerClassName, IWriter.class,
          JarLoader.getInstance(new String[]{writerPath}));
      writer.setParam(param);
      writer.setMonitor(pm);
      return new WriterThread(lineReceiver, writer);
    } catch(Exception e){
      s_logger.error("Error to create WriterThread: ", e);
      return null;
    }
View Full Code Here


    assertNull(writer);
  }
 
  @Test
  public void testRun() throws Exception{
    IWriter writer = mock(IWriter.class);
    WriterThread writerThread = createWriterThread(writer);
    writerThread.call();
   
    InOrder orderedExecution = inOrder(writer);
    orderedExecution.verify(writer).init()
View Full Code Here

TOP

Related Classes of com.dp.nebula.wormhole.common.interfaces.IWriter

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.