Пример #1
0
@RunWith(Parameterized.class)
public class TestCliDriver {

  static CliAdapter adapter = new CliConfigs.CliConfig().getCliAdapter();

  @Parameters(name = "{0}")
  public static List<Object[]> getParameters() throws Exception {
    return adapter.getParameters();
  }

  @ClassRule public static TestRule cliClassRule = adapter.buildClassRule();

  @Rule public TestRule cliTestRule = adapter.buildTestRule();

  private String name;
  private File qfile;

  public TestCliDriver(String name, File qfile) {
    this.name = name;
    this.qfile = qfile;
  }

  @Test
  public void testCliDriver() throws Exception {
    adapter.runTest(name, qfile);
  }
}
Пример #2
0
 @Test
 public void testCliDriver() throws Exception {
   adapter.runTest(name, qfile);
 }
Пример #3
0
 @Parameters(name = "{0}")
 public static List<Object[]> getParameters() throws Exception {
   return adapter.getParameters();
 }