Search in sources :

Example 1 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project pinot by linkedin.

the class TestStarTreeOffheapFormat method setup.

/**
   * Build the star tree.
   * @throws Exception
   */
@BeforeSuite
void setup() throws Exception {
    StarTreeIndexTestSegmentHelper.buildSegment(SEGMENT_DIR_NAME, SEGMENT_NAME, false);
    _segment = StarTreeIndexTestSegmentHelper.loadSegment(SEGMENT_DIR_NAME, SEGMENT_NAME);
    _starTreeOnHeap = _segment.getStarTree();
    _starTreeOffHeapFile = new File(SEGMENT_DIR_NAME, STAR_TREE_OFF_HEAP_FILE_NAME);
    StarTreeSerDe.writeTreeOffHeapFormat(_starTreeOnHeap, _starTreeOffHeapFile);
    // Build the StarTreeOffHeap segment
    _schema = StarTreeIndexTestSegmentHelper.buildSegment(SEGMENT_OFF_HEAP_DIR_NAME, SEGMENT_OFF_HEAP_NAME, true);
    _segmentOffHeap = StarTreeIndexTestSegmentHelper.loadSegment(SEGMENT_OFF_HEAP_DIR_NAME, SEGMENT_OFF_HEAP_NAME);
}
Also used : File(java.io.File) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 2 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project pinot by linkedin.

the class DoubleGroupByResultHolderTest method setup.

/**
   * Initial setup:
   * - Initialize the '_expected' array with random double values.
   */
@BeforeSuite
void setup() {
    Random random = new Random(RANDOM_SEED);
    _expected = new double[MAX_CAPACITY];
    for (int i = 0; i < MAX_CAPACITY; i++) {
        double value = random.nextDouble();
        _expected[i] = value;
    }
}
Also used : Random(java.util.Random) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 3 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project OpenRefine by OpenRefine.

the class RefineBrokerTests method suite_init.

@BeforeSuite
public void suite_init() {
    System.setProperty("log4j.configuration", "tests.log4j.properties");
    data = new File("data");
    if (!data.exists())
        data.mkdirs();
}
Also used : File(java.io.File) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 4 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.

the class TestObjectQuery method setupDebug.

@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
    PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
    PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
    matchingRuleRegistry = MatchingRuleRegistryFactory.createRegistry();
}
Also used : PrismInternalTestUtil(com.evolveum.midpoint.prism.PrismInternalTestUtil) BeforeSuite(org.testng.annotations.BeforeSuite)

Example 5 with BeforeSuite

use of org.testng.annotations.BeforeSuite in project midpoint by Evolveum.

the class TestQueryConvertors method setupDebug.

@BeforeSuite
public void setupDebug() throws SchemaException, SAXException, IOException {
    PrettyPrinter.setDefaultNamespacePrefix(DEFAULT_NAMESPACE_PREFIX);
    PrismTestUtil.resetPrismContext(new PrismInternalTestUtil());
}
Also used : PrismInternalTestUtil(com.evolveum.midpoint.prism.PrismInternalTestUtil) BeforeSuite(org.testng.annotations.BeforeSuite)

Aggregations

BeforeSuite (org.testng.annotations.BeforeSuite)65 PrismInternalTestUtil (com.evolveum.midpoint.prism.PrismInternalTestUtil)12 HashMap (java.util.HashMap)12 File (java.io.File)11 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)6 FileInputStream (java.io.FileInputStream)5 Properties (java.util.Properties)5 ChromeDriver (org.openqa.selenium.chrome.ChromeDriver)5 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)5 ZNRecordSerializer (org.apache.helix.manager.zk.ZNRecordSerializer)4 ZkClient (org.apache.helix.manager.zk.ZkClient)4 ChromeOptions (org.openqa.selenium.chrome.ChromeOptions)4 Actions (org.openqa.selenium.interactions.Actions)4 IOException (java.io.IOException)3 ArrayList (java.util.ArrayList)3 Random (java.util.Random)3 SubscriptionManagerTasks (rhsm.cli.tasks.SubscriptionManagerTasks)3 SSHCommandResult (com.redhat.qe.tools.SSHCommandResult)2 CloudbreakClient (com.sequenceiq.cloudbreak.client.CloudbreakClient)2 InputStream (java.io.InputStream)2