Package org.apache.struts2.s1

Examples of org.apache.struts2.s1.Struts1FactoryTest


 
  /** */
  @Test public void  testDist() {
    try
    {
      S1 a = new S1();
      S1 b = new S1();
      testServer.dist( a, b );
      testClient.dist( a, b );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here


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

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

 
  /** */
  @Test public void  testM14() {
    try
    {
      S1 b = null;
      testServer.m14(b);
      testClient.m14(b);
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist1() throws Exception
  {
    svc.xresult = Math.sqrt( 3 );
    S1 arg1 =  new S1( 1, 1, 1 );
    S1 arg2 = new S1( 0, 0, 0 );
    assertEquals( Math.sqrt( 3 ), test.dist( arg1, arg2 ) );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_dist,
      new Field[] { ValueFactoryTest1._mf_a, ValueFactoryTest1._mf_b },
      new Object[] { arg1, arg2 },
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist2() throws Exception
  {
    svc.xresult = Math.sqrt( 35 );
    S1 arg1 = new S1( 1, 2, 3 );
    S1 arg2 = new S1( 6, 5, 4 );
    assertEquals( Math.sqrt( 35 ), test.dist( arg1, arg2 ) );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_dist,
      new Field[] { ValueFactoryTest1._mf_a, ValueFactoryTest1._mf_b },
      new Object[] { arg1, arg2 },
View Full Code Here

  /** @throws Exception */
  @org.junit.Test
  public void method_dist3() throws Exception
  {
    svc.xresult = Math.sqrt( 56 );
    S1 arg1 = new S1( 1, 2, 3 );
    S1 arg2 = new S1( -1, -2, -3 );
    assertEquals( Math.sqrt( 56 ), test.dist( arg1, arg2 ) );
    check( What.CALL,
      ValueFactoryTest1._mt_etch_tests_Test1_dist,
      new Field[] { ValueFactoryTest1._mf_a, ValueFactoryTest1._mf_b },
      new Object[] { arg1, arg2 },
View Full Code Here

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

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

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

TOP

Related Classes of org.apache.struts2.s1.Struts1FactoryTest

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.