Package org.discoproject.worker.protocol.encoder

Examples of org.discoproject.worker.protocol.encoder.ErrorEncoder


    assertEquals("DONE 2 \"\"\n", encodedString);
  }

  @Test
  public void testErrorEncoder() {
    final ErrorEncoder encoder = new ErrorEncoder();
    final String errorMessage = "The error message";
    encoder.set(errorMessage);
    final String encodedString = encoder.toString();

    assertEquals("ERROR 19 \"The error message\"\n", encodedString);
  }
View Full Code Here


    this.workerAnnounceEncoder = new WorkerAnnounceEncoder();
    this.requestTaskEncoder = new RequestTaskEncoder();
    this.outputEncoder = new OutputEncoder();
    this.doneEncoder = new DoneEncoder();
    this.errorEncoder = new ErrorEncoder();
    this.fatalEncoder = new FatalEncoder();
    this.messageEncoder = new MessageEncoder();
  }
View Full Code Here

TOP

Related Classes of org.discoproject.worker.protocol.encoder.ErrorEncoder

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.