Package etch.bindings.java.msg

Examples of etch.bindings.java.msg.Message


  /** @throws Exception */
  @org.junit.Test
  public void method_incr2() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_incr, vf );
    // msg.put( ValueFactoryTest1._mf_x, 3 ); -- cause an exception
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
View Full Code Here


  /** @throws Exception */
  @org.junit.Test
  public void method_sub() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_sub, vf );
    msg.put( ValueFactoryTest1._mf_x, 7 );
    msg.put( ValueFactoryTest1._mf_y, 3 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_sub );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_sum() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_sum, vf );
    msg.put( ValueFactoryTest1._mf_x, new int[]
    {
      1, 2, 3, 7, 11
    } );
    stub.sessionMessage( null, msg );
    // check the result.
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_trans1() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_trans,
      vf );
    msg.put( ValueFactoryTest1._mf_e, Test1.E1.A );
    msg.put( ValueFactoryTest1._mf_x, 5 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_trans );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_trans2() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_trans,
      vf );
    msg.put( ValueFactoryTest1._mf_e, Test1.E1.B );
    msg.put( ValueFactoryTest1._mf_x, 5 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_trans );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_trans3() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_trans,
      vf );
    msg.put( ValueFactoryTest1._mf_e, Test1.E1.C );
    msg.put( ValueFactoryTest1._mf_x, 5 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_trans );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist1() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_dist, vf );
    msg.put( ValueFactoryTest1._mf_a, new Test1.S1( 1, 1, 1 ) );
    msg.put( ValueFactoryTest1._mf_b, new Test1.S1( 0, 0, 0 ) );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_dist );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist2() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_dist, vf );
    msg.put( ValueFactoryTest1._mf_a, new Test1.S1( 1, 2, 3 ) );
    msg.put( ValueFactoryTest1._mf_b, new Test1.S1( 6, 5, 4 ) );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_dist );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_fill() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_fill, vf );
    msg.put( ValueFactoryTest1._mf_n, 4 );
    msg.put( ValueFactoryTest1._mf_x, 3 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_fill );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_blow() throws Exception
  {
    Message msg = new Message(
      ValueFactoryTest1._mt_etch_tests_Test1_blow, vf );
    msg.put( ValueFactoryTest1._mf_msg, "foo" );
    msg.put( ValueFactoryTest1._mf_code, 23 );
    stub.sessionMessage( null, msg );
    // check the result.
    src.xreply
      .checkType( ValueFactoryTest1._mt_etch_tests_Test1__result_blow );
    assertEquals( 1, src.xreply.size() );
View Full Code Here

TOP

Related Classes of etch.bindings.java.msg.Message

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.