Search in sources :

Example 6 with TestCaseContext

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

the class LangExecutionUtil 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 7 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 8 with TestCaseContext

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

the class NCServiceExecutionIT method tests.

@Parameters(name = "NCServiceExecutionTest {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(TESTS_DIR))) {
        if (!skip(ctx)) {
            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 9 with TestCaseContext

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

the class DmlRecoveryIT 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(TESTSUITE_PATH_BASE))) {
        if (ctx.getTestCase().getFilePath().equals("dml")) {
            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 10 with TestCaseContext

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

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

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