Search in sources :

Example 11 with TestCaseContext

use of org.apache.asterix.testframework.context.TestCaseContext in project asterixdb by apache.

the class MetadataReplicationIT method buildTestsInXml.

protected static Collection<Object[]> buildTestsInXml(String xmlfile) throws Exception {
    Collection<Object[]> testArgs = new ArrayList<>();
    TestCaseContext.Builder b = new TestCaseContext.Builder();
    for (TestCaseContext ctx : b.build(new File(PATH_BASE), xmlfile)) {
        testArgs.add(new Object[] { ctx });
    }
    return testArgs;
}
Also used : TestCaseContext(org.apache.asterix.testframework.context.TestCaseContext) ArrayList(java.util.ArrayList) File(java.io.File)

Example 12 with TestCaseContext

use of org.apache.asterix.testframework.context.TestCaseContext in project asterixdb by apache.

the class RuntimeParserTest method buildTestsInXml.

protected static Collection<Object[]> buildTestsInXml(String xmlfile) throws Exception {
    Collection<Object[]> testArgs = new ArrayList<Object[]>();
    TestCaseContext.Builder b = new TestCaseContext.Builder();
    for (TestCaseContext ctx : b.build(new File(PATH_BASE), xmlfile)) {
        testArgs.add(new Object[] { ctx });
    }
    return testArgs;
}
Also used : TestCaseContext(org.apache.asterix.testframework.context.TestCaseContext) ArrayList(java.util.ArrayList) File(java.io.File)

Aggregations

File (java.io.File)12 ArrayList (java.util.ArrayList)12 TestCaseContext (org.apache.asterix.testframework.context.TestCaseContext)12 Parameters (org.junit.runners.Parameterized.Parameters)6