Search in sources :

Example 1 with TestCaseContext

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

the class MetadataTest method tests.

@Parameters(name = "MetadataTest {index}: {0}")
public static Collection<Object[]> tests() throws Exception {
    Collection<Object[]> testArgs = new ArrayList<Object[]>();
    TestCaseContext.Builder b = new TestCaseContext.Builder();
    for (TestCaseContext ctx : b.build(new File(PATH_BASE))) {
        testArgs.add(new Object[] { ctx });
    }
    return testArgs;
}
Also used : TestCaseContext(org.apache.asterix.testframework.context.TestCaseContext) ArrayList(java.util.ArrayList) File(java.io.File) Parameters(org.junit.runners.Parameterized.Parameters)

Example 2 with TestCaseContext

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

the class RecoveryIT method tests.

@Parameters(name = "RecoveryIT {index}: {0}")
public static Collection<Object[]> tests() throws Exception {
    Collection<Object[]> testArgs = new ArrayList<Object[]>();
    TestCaseContext.Builder b = new TestCaseContext.Builder();
    for (TestCaseContext ctx : b.build(new File(PATH_BASE))) {
        testArgs.add(new Object[] { ctx });
    }
    return testArgs;
}
Also used : TestCaseContext(org.apache.asterix.testframework.context.TestCaseContext) ArrayList(java.util.ArrayList) File(java.io.File) Parameters(org.junit.runners.Parameterized.Parameters)

Example 3 with TestCaseContext

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

the class AbstractExecutionIT method tests.

@Parameters
public static Collection<Object[]> tests() throws Exception {
    Collection<Object[]> testArgs = new ArrayList<Object[]>();
    TestCaseContext.Builder b = new TestCaseContext.Builder();
    for (TestCaseContext ctx : b.build(new File(PATH_BASE))) {
        testArgs.add(new Object[] { ctx });
    }
    return testArgs;
}
Also used : TestCaseContext(org.apache.asterix.testframework.context.TestCaseContext) ArrayList(java.util.ArrayList) File(java.io.File) Parameters(org.junit.runners.Parameterized.Parameters)

Example 4 with TestCaseContext

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

the class ManagixSqlppExecutionIT 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)

Example 5 with TestCaseContext

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

the class ReplicationIT 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)

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