Examples of InputErrorEncoder


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

    assertEquals("FATAL 19 \"The fatal message\"\n", encodedString);
  }

  @Test
  public void testInputErrorEncoder() {
    final InputErrorEncoder encoder = new InputErrorEncoder();
    final String inputId = "inputId";
    final List<String> repIds = new ArrayList<String>();
    repIds.add("1");
    repIds.add("2");
    repIds.add("3");
    repIds.add("4");
    repIds.add("5");
    encoder.set(inputId, repIds);
    final String encodedString = encoder.toString();
    assertEquals("INPUT_ERR 33 [\"inputId\",[\"1\",\"2\",\"3\",\"4\",\"5\"]]\n", encodedString);
  }
View Full Code Here

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

    this.discoIOChannel = discoIOChannel;
    this.inputs = new LinkedList<ReadableByteChannel>();
    this.discoPort = discoPort;

    this.requestInputEncoder = new RequestInputsEncoder();
    this.inputErrorEncoder = new InputErrorEncoder();
  }
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.