@BeforeClass void before() { e = Executors.newFixedThreadPool(4); } @AfterClass void after() { if (e != null) e.shutdown(); }
@BeforeClass public void setUp() { executor = newCachedThreadPool(daemonThreadsNamed("test-executor-%s")); scheduledExecutor = newScheduledThreadPool(2, daemonThreadsNamed("test-scheduledExecutor-%s")); }
@BeforeClass(groups = "fast") protected void beforeClass() throws Exception { if (hasFailed()) { return; } final Injector injector = Guice.createInjector(new TestOverdueModuleNoDB(configSource, clock)); injector.injectMembers(this); }
@BeforeClass public void setUp() { scheduler = newScheduledThreadPool(4, daemonThreadsNamed("test-%s")); pageBufferClientCallbackExecutor = Executors.newSingleThreadExecutor(); }
@BeforeClass public void setUpClass() { executor = Executors.newFixedThreadPool(8, Threads.daemonThreadsNamed("test-async-queue-%s")); }
@BeforeClass public void setUp() { executor = newCachedThreadPool(); }
@BeforeClass void beforeClass() { numSetUpCalls = 0; numSetUpCallsInTransaction = 0; numTearDownCalls = 0; numTearDownCallsInTransaction = 0; }
@BeforeClass public void setUp() { executor = newCachedThreadPool(daemonThreadsNamed("hive-%s")); }
@BeforeClass public void setUp() { stateNotificationExecutor = newScheduledThreadPool(5, daemonThreadsNamed("test-%s")); }
@BeforeClass public void setUp() { executor = newSingleThreadScheduledExecutor(); }
@BeforeClass public void setUp() throws Exception { ConfigFactory.invalidateCaches(); testMetastoreDatabase = TestMetastoreDatabaseFactory.get(getVersion()); Properties properties = new Properties(); properties.setProperty(ConfigurationKeys.JOB_HISTORY_STORE_URL_KEY, testMetastoreDatabase.getJdbcUrl()); Injector injector = Guice.createInjector(new MetaStoreModule(properties)); this.jobHistoryStore = injector.getInstance(JobHistoryStore.class); }
@BeforeClass public void setUp() { notificationExecutor = newCachedThreadPool(daemonThreadsNamed("local-query-runner-executor-%s")); yieldExecutor = newScheduledThreadPool(2, daemonThreadsNamed("local-query-runner-scheduler-%s")); }
@BeforeClass(groups = "slow") protected void beforeClass() throws Exception { if (hasFailed()) { return; } final Injector injector = Guice.createInjector(new TestTenantModuleWithEmbeddedDB(configSource, clock)); injector.injectMembers(this); } }
@BeforeClass public void setUp() { scheduler = newScheduledThreadPool(4, daemonThreadsNamed("test-%s")); pageBufferClientCallbackExecutor = Executors.newSingleThreadExecutor(); }
@BeforeClass public void setUp() { executor = MoreExecutors.listeningDecorator(newCachedThreadPool()); }
/** * 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 public void setupClass() { executor = newCachedThreadPool(daemonThreadsNamed("hive-%s")); }
@BeforeClass public void setUp() { stateNotificationExecutor = newScheduledThreadPool(5, daemonThreadsNamed("test-%s")); }
@BeforeClass public void setUp() { scheduledExecutor = newSingleThreadScheduledExecutor(); }
@BeforeClass void before() { e = Executors.newFixedThreadPool(4); } @AfterClass void after() { if (e != null) e.shutdown(); }