Package org.apache.etch.interoptester

Examples of org.apache.etch.interoptester.Run


 
  /** @throws Exception */
  @Test
  public void run10() throws Exception
  {
    Run r = Run.parse( itest, parseXml( "<run test=\"bar\"><arg name=\"abc\" value=\"x\\{p1}y\"/></run>" ) );
    assertNull( test );
    Map<String, String> args = new HashMap<String, String>();
    args.put( "p1", "123" );
    r.run( args );
    assertEquals( "bar", test.name() );
    assertEquals( 1, test.args.size() );
    assertEquals( "x{p1}y", test.args.get( "abc" ) );
  }
View Full Code Here


 
  /** @throws Exception */
  @Test
  public void run11() throws Exception
  {
    Run r = Run.parse( itest, parseXml( "<run test=\"bar\"><arg name=\"abc\" value=\"x\\\\y\"/></run>" ) );
    assertNull( test );
    Map<String, String> args = new HashMap<String, String>();
    args.put( "p1", "123" );
    r.run( args );
    assertEquals( "bar", test.name() );
    assertEquals( 1, test.args.size() );
    assertEquals( "x\\y", test.args.get( "abc" ) );
  }
View Full Code Here

TOP

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

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.