Package org.apache.etch.interoptester

Examples of org.apache.etch.interoptester.Param


 
  /** @throws Exception */
  @Test
  public void parse3() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"foo\"/>" ) );
    assertEquals( "foo", p.name() );
    assertNull( p.value( args ) );
  }
View Full Code Here


 
  /** @throws Exception */
  @Test
  public void parse4() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"foo\"></param>" ) );
    assertEquals( "foo", p.name() );
    assertNull( p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void parse5() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"foo\">789</param>" ) );
    assertEquals( "foo", p.name() );
    assertEquals( "789", p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void parse6() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"foo\" default=\"\"/>" ) );
    assertEquals( "foo", p.name() );
    assertEquals( "", p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void parse7() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"foo\" default=\"789\"/>" ) );
    assertEquals( "foo", p.name() );
    assertEquals( "789", p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void parse8() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"bar\"/>" ) );
    assertEquals( "bar", p.name() );
    assertEquals( "123", p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void parse9() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"baz\" default=\"234\"/>" ) );
    assertEquals( "baz", p.name() );
    assertEquals( "456", p.value( args ) );
  }
View Full Code Here

 
  /** @throws Exception */
  @Test
  public void toString1() throws Exception
  {
    Param p = Param.parse( parseXml( "<param name=\"baz\" default=\"234\"/>" ) );
    assertEquals( "Param( baz, 234 )", p.toString() );
  }
View Full Code Here

TOP

Related Classes of org.apache.etch.interoptester.Param

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.