Package test.shell.sync

Examples of test.shell.sync.SyncProcess


  /**
   * Make sure that a reading thread is interrupted when the process is cancelled
   */
  public void testReadLine5() throws Exception {
    final ArrayBlockingQueue<ShellProcessContext> contexts = new ArrayBlockingQueue<ShellProcessContext>(1);
    shell.addProcess(new SyncProcess() {
      @Override
      public void run(String request, ShellProcessContext context) throws Exception {
        contexts.add(context);
      }
    });
View Full Code Here


*/
public class InsertCommentTestCase extends AbstractConsoleTestCase {

  public void testEmacs() throws Exception {
    final ArrayBlockingQueue<String> requests = new ArrayBlockingQueue<String>(1);
    shell.addProcess(new SyncProcess() {
      @Override
      public void run(String request, ShellProcessContext context) throws Exception {
        requests.add(request);
        context.end(ShellResponse.ok());
      }
View Full Code Here

TOP

Related Classes of test.shell.sync.SyncProcess

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.