Package org.apache.oozie.service

Examples of org.apache.oozie.service.TestServices$S2


 
  /** */
  @Test public void  testS2() {
    try
    {
      S2 a  = null;
      testServer.p_S2( a );
      testClient.p_S2( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here


 
  /** */
  @Test public void  testS2Array() {
    try
    {
      S2 a[]  = null;
      testServer.p_S2_array( a );
      testClient.p_S2_array( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_S2_null() throws Exception
  {
    S2 a = null;
    svc.xresult = a;
    S2 r = test.p_S2( a );
    assertObjectEquals( a, r );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_p_S2,
      new Field[] {},
      new Object[] {},
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_S2() throws Exception
  {
    S2 a = new S2( new S1( 1, 2, 3 ), new S1( 2, 3, 4 ), E1.A );
    svc.xresult = a;
    S2 r = test.p_S2( a );
    assertObjectEquals( a, r );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_p_S2,
      new Field[] { ValueFactoryTest1._mf_a },
      new Object[] { a },
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_S2_array() throws Exception
  {
    S2 x = new S2( new S1( 1, 2, 3 ), new S1( 2, 3, 4 ), E1.A );
    S2 y = new S2( new S1( 2, 3, 4 ), new S1( 3, 4, 5 ), E1.B );
    S2[] a = { x, y };
    svc.xresult = a;
    S2[] r = test.p_S2_array( a );
    assertObjectEquals( a, r );
    check( What.CALL,
View Full Code Here

  {
    S1 a = new S1( 21, 22, 23 );
    S1 b = new S1( 31, 32, 33 );
    E1 c = E1.A;
   
    StructValue sv = vf.exportCustomValue( new S2( a, b, c ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_S2 );
    assertEquals( 3, sv.size() );
   
    assertSame( a, sv.get( ValueFactoryTest1._mf_a ) );
    assertSame( b, sv.get( ValueFactoryTest1._mf_b ) );
View Full Code Here

   
    sv.put( ValueFactoryTest1._mf_a, new S1( 21, 22, 23 ) );
    sv.put( ValueFactoryTest1._mf_b, new S1( 31, 32, 33 ) );
    sv.put( ValueFactoryTest1._mf_c, E1.A );
   
    S2 s = (S2) vf.importCustomValue( sv );
    assertEquals( 21, s.a.x );
    assertEquals( 22, s.a.y );
    assertEquals( 23, s.a.z );
    assertEquals( 31, s.b.x );
    assertEquals( 32, s.b.y );
View Full Code Here

  {
    S1 a = new S1( 21, 22, 23 );
    S1 b = new S1( 31, 32, 33 );
    E1 c = E1.A;
   
    StructValue sv = vf.exportCustomValue( new S2( a, b, c ) );
    sv.checkType( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S2 );
    assertEquals( 3, sv.size() );
   
    assertSame( a, sv.get( ValueFactoryTest1._mf_a ) );
    assertSame( b, sv.get( ValueFactoryTest1._mf_b ) );
View Full Code Here

   
    sv.put( ValueFactoryTest1._mf_a, new S1( 21, 22, 23 ) );
    sv.put( ValueFactoryTest1._mf_b, new S1( 31, 32, 33 ) );
    sv.put( ValueFactoryTest1._mf_c, E1.A );
   
    S2 s = (S2) vf.importCustomValue( sv );
    assertEquals( 21, s.a.x );
    assertEquals( 22, s.a.y );
    assertEquals( 23, s.a.z );
    assertEquals( 31, s.b.x );
    assertEquals( 32, s.b.y );
View Full Code Here

 
  /** @throws Exception */
  @org.junit.Test
  public void method_p_S2_null() throws Exception
  {
    S2 a = null;
    svc.xresult = a;
    S2 r = test.p_S2( a );
    assertObjectEquals( a, r );
    check( What.CALL,
      ValueFactoryTest1._mt_org_apache_etch_tests_Test1_p_S2,
      new Field[] {},
      new Object[] {},
View Full Code Here

TOP

Related Classes of org.apache.oozie.service.TestServices$S2

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.