Package org.apache.etch.interoptester

Examples of org.apache.etch.interoptester.Test.params()


  {
    Test t = Test.parse( itest, parseXml(
      "<test name=\"foo\"><jig><prog name=\"bar\"/></jig></test>" ) );
    assertSame( itest, t.itest() );
    assertEquals( "foo", t.name() );
    assertEquals( 0, t.params().size() );
    assertEquals( 0, t.setup().size() );
    assertEquals( 0, t.support().size() );
    assertEquals( "bar", t.jig().name() );
    assertEquals( 0, t.cleanup().size() );
  }
View Full Code Here


  {
    Test t = Test.parse( itest, parseXml(
      "<test name=\"bar\"><params><param name=\"param1\"/><param name=\"param2\"/></params><setup><prog name=\"setup1\"/><prog name=\"setup2\"/></setup><support><prog name=\"support1\"/><prog name=\"support2\"/></support><jig><prog name=\"jig1\"/></jig><cleanup><prog name=\"cleanup1\"/><prog name=\"cleanup2\"/></cleanup></test>" ) );
    assertSame( itest, t.itest() );
    assertEquals( "bar", t.name() );
    assertEquals( 2, t.params().size() );
    assertTrue( t.params().containsKey( "param1" ) );
    assertTrue( t.params().containsKey( "param2" ) );
    assertEquals( 2, t.setup().size() );
    assertEquals( "setup1", t.setup().get( 0 ).name() );
    assertEquals( "setup2", t.setup().get( 1 ).name() );
View Full Code Here

    Test t = Test.parse( itest, parseXml(
      "<test name=\"bar\"><params><param name=\"param1\"/><param name=\"param2\"/></params><setup><prog name=\"setup1\"/><prog name=\"setup2\"/></setup><support><prog name=\"support1\"/><prog name=\"support2\"/></support><jig><prog name=\"jig1\"/></jig><cleanup><prog name=\"cleanup1\"/><prog name=\"cleanup2\"/></cleanup></test>" ) );
    assertSame( itest, t.itest() );
    assertEquals( "bar", t.name() );
    assertEquals( 2, t.params().size() );
    assertTrue( t.params().containsKey( "param1" ) );
    assertTrue( t.params().containsKey( "param2" ) );
    assertEquals( 2, t.setup().size() );
    assertEquals( "setup1", t.setup().get( 0 ).name() );
    assertEquals( "setup2", t.setup().get( 1 ).name() );
    assertEquals( 2, t.support().size() );
View Full Code Here

      "<test name=\"bar\"><params><param name=\"param1\"/><param name=\"param2\"/></params><setup><prog name=\"setup1\"/><prog name=\"setup2\"/></setup><support><prog name=\"support1\"/><prog name=\"support2\"/></support><jig><prog name=\"jig1\"/></jig><cleanup><prog name=\"cleanup1\"/><prog name=\"cleanup2\"/></cleanup></test>" ) );
    assertSame( itest, t.itest() );
    assertEquals( "bar", t.name() );
    assertEquals( 2, t.params().size() );
    assertTrue( t.params().containsKey( "param1" ) );
    assertTrue( t.params().containsKey( "param2" ) );
    assertEquals( 2, t.setup().size() );
    assertEquals( "setup1", t.setup().get( 0 ).name() );
    assertEquals( "setup2", t.setup().get( 1 ).name() );
    assertEquals( 2, t.support().size() );
    assertEquals( "support1", t.support().get( 0 ).name() );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.