Search in sources :

Example 1 with FunctionAssertions

use of com.facebook.presto.operator.scalar.FunctionAssertions in project presto by prestodb.

the class TestTimeWithTimeZone method setUp.

@BeforeClass
public void setUp() {
    session = testSessionBuilder().setTimeZoneKey(getTimeZoneKey("+06:09")).build();
    functionAssertions = new FunctionAssertions(session);
}
Also used : FunctionAssertions(com.facebook.presto.operator.scalar.FunctionAssertions) BeforeClass(org.testng.annotations.BeforeClass)

Example 2 with FunctionAssertions

use of com.facebook.presto.operator.scalar.FunctionAssertions in project presto by prestodb.

the class TestTimestampWithTimeZone method setUp.

@BeforeClass
public void setUp() {
    session = testSessionBuilder().setTimeZoneKey(TIME_ZONE_KEY).build();
    functionAssertions = new FunctionAssertions(session);
}
Also used : FunctionAssertions(com.facebook.presto.operator.scalar.FunctionAssertions) BeforeClass(org.testng.annotations.BeforeClass)

Example 3 with FunctionAssertions

use of com.facebook.presto.operator.scalar.FunctionAssertions in project presto by prestodb.

the class TestExpressionCompiler method setupClass.

@BeforeSuite
public void setupClass() {
    Logging.initialize();
    if (PARALLEL) {
        executor = listeningDecorator(newFixedThreadPool(getRuntime().availableProcessors() * 2, daemonThreadsNamed("completer-%s")));
    } else {
        executor = newDirectExecutorService();
    }
    functionAssertions = new FunctionAssertions();
}
Also used : FunctionAssertions(com.facebook.presto.operator.scalar.FunctionAssertions) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 4 with FunctionAssertions

use of com.facebook.presto.operator.scalar.FunctionAssertions in project presto by prestodb.

the class TestDate method setUp.

@BeforeClass
public void setUp() {
    Session session = testSessionBuilder().setTimeZoneKey(TIME_ZONE_KEY).build();
    functionAssertions = new FunctionAssertions(session);
}
Also used : FunctionAssertions(com.facebook.presto.operator.scalar.FunctionAssertions) Session(com.facebook.presto.Session) BeforeClass(org.testng.annotations.BeforeClass)

Example 5 with FunctionAssertions

use of com.facebook.presto.operator.scalar.FunctionAssertions in project presto by prestodb.

the class TestDateTimeOperators method setUp.

@BeforeClass
public void setUp() {
    Session session = testSessionBuilder().setTimeZoneKey(TIME_ZONE_KEY).build();
    functionAssertions = new FunctionAssertions(session);
}
Also used : FunctionAssertions(com.facebook.presto.operator.scalar.FunctionAssertions) Session(com.facebook.presto.Session) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

FunctionAssertions (com.facebook.presto.operator.scalar.FunctionAssertions)7 BeforeClass (org.testng.annotations.BeforeClass)6 Session (com.facebook.presto.Session)4 BeforeSuite (org.testng.annotations.BeforeSuite)1