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);
}
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;
}
}
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();
}
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();
}
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());
}
Aggregations