@BeforeClass void beforeClass() { numSetUpCalls = 0; numSetUpCallsInTransaction = 0; numTearDownCalls = 0; numTearDownCallsInTransaction = 0; }
/** * Delegates to the configured {@link TestContextManager} to * {@linkplain TestContextManager#prepareTestInstance(Object) prepare} this test * instance prior to execution of any individual tests, for example for * injecting dependencies, etc. * @throws Exception if a registered TestExecutionListener throws an exception */ @BeforeClass(alwaysRun = true, dependsOnMethods = "springTestContextBeforeTestClass") protected void springTestContextPrepareTestInstance() throws Exception { this.testContextManager.prepareTestInstance(this); }
/** * Delegates to the configured {@link TestContextManager} to call * {@linkplain TestContextManager#beforeTestClass() 'before test class'} callbacks. * @throws Exception if a registered TestExecutionListener throws an exception */ @BeforeClass(alwaysRun = true) protected void springTestContextBeforeTestClass() throws Exception { this.testContextManager.beforeTestClass(); }
@BeforeClass void beforeClass() { numSetUpCalls = 0; numSetUpCallsInTransaction = 0; numTearDownCalls = 0; numTearDownCallsInTransaction = 0; }
@BeforeClass public void setUp() { executor = newCachedThreadPool(); }
@BeforeClass public void setUp() { executor = newSingleThreadScheduledExecutor(); }
@BeforeClass public void setUp() { queryRunner = getQueryRunner(); }
@BeforeClass public void setUp() { runner = createQueryRunner(); }
@BeforeClass public void init() { assertions = new QueryAssertions(); }
@BeforeClass public void init() { h2QueryRunner = new H2QueryRunner(); }
@BeforeClass public void setUpClass() { executor = Executors.newFixedThreadPool(8, Threads.daemonThreadsNamed("test-async-queue-%s")); }
@BeforeClass public void setUp() throws Exception { File tempPath = createTempDir(); copyExecutable("hanging_atop.sh", tempPath); queryRunner = createQueryRunner(ImmutableMap.of("atop.executable-path", tempPath + "/hanging_atop.sh", "atop.executable-read-timeout", "1s"), AtopProcessFactory.class); }
@BeforeClass public void setUp() { assertEquals(DateTimeZone.getDefault(), HIVE_STORAGE_TIME_ZONE); setParquetLogging(); }
@BeforeClass public void setUp() { determinismChecker = new PlanDeterminismChecker((LocalQueryRunner) getQueryRunner()); }
@BeforeClass public void start() { server = new MongoServer(new MemoryBackend()); InetSocketAddress address = server.bind(); seed = String.format("%s:%d", address.getHostString(), address.getPort()); }
@BeforeClass public void setUp() throws Exception { database = new TestingDatabase(); catalogName = database.getConnection().getCatalog(); jdbcClient = database.getJdbcClient(); }
@BeforeClass public void setup() { GeoPlugin plugin = new GeoPlugin(); registerTypes(plugin); registerFunctions(plugin); }
@BeforeClass public void setUp() { symbolAllocator = new SymbolAllocator(); columnA = symbolAllocator.newSymbol("a", BIGINT); columnB = symbolAllocator.newSymbol("b", BIGINT); columnC = symbolAllocator.newSymbol("c", BIGINT); sourceNode = new ValuesNode( newId(), ImmutableList.of(columnA, columnB, columnC), ImmutableList.of()); }
@BeforeClass public void setUp() { calculator = new ScalarStatsCalculator(MetadataManager.createTestMetadataManager()); session = testSessionBuilder().build(); }
@BeforeClass protected void registerFunctions() { functionAssertions.getMetadata().addFunctions( extractFunctions(new MLPlugin().getFunctions())); } }