@Override protected void before() throws Throwable { super.before(); }
@Override protected void before() throws Throwable { logger.info( "Begin test:" + testName ); super.before(); }
@Override protected void before() throws Throwable { super.before(); clear(); }
@Override public void evaluate() throws Throwable { before(); try { base.evaluate(); } finally { after(); } } };
@Override public void evaluate() throws Throwable { before(); List<Throwable> errors = new ArrayList<Throwable>(); try { base.evaluate(); } catch (Throwable t) { errors.add(t); } finally { try { after(); } catch (Throwable t) { errors.add(t); } } MultipleFailureException.assertEmpty(errors); } };
@Override protected synchronized void before() throws Throwable { if ( null == thunk ) { super.before(); thunk = executor.schedule( (Callable<Void>) () -> { dump(); return null; }, duration, timeUnit ); } else { throw new IllegalStateException( "process dumping thunk already started" ); } }
@Override protected void before() throws Throwable { batcher.setBlockingSubmit( true ); batcher.setBatchSize( 1 ); super.before(); }
@Override protected void before() throws Throwable { clear(); server = new MockWebServer(); final Dispatcher dispatcher = new Dispatcher() { @Override public MockResponse dispatch(RecordedRequest request) throws InterruptedException { if (request.getPath().startsWith("/notifications/v2")) { String notifications = request.getRequestUrl().queryParameter("notifications"); return new MockResponse().setResponseCode(200).setBody(mockLongPollBody(notifications)); } else if (request.getPath().startsWith("/configs")) { List<String> pathSegments = request.getRequestUrl().pathSegments(); // appId and cluster might be used in the future String appId = pathSegments.get(1); String cluster = pathSegments.get(2); String namespace = pathSegments.get(3); return new MockResponse().setResponseCode(200).setBody(loadConfigFor(namespace)); } return new MockResponse().setResponseCode(404); } }; server.setDispatcher(dispatcher); server.start(); mockConfigServiceUrl("http://localhost:" + server.getPort()); super.before(); }
@Override public void evaluate() throws Throwable { before(); try { base.evaluate(); } finally { after(); } } };
@Override protected void before() throws Throwable { super.before(); assumeTrue("No connectivity to " + connectivityUrl + ". Ignoring test.", checkConnectivity(connectivityUrl)); }
@Override protected void before() throws Throwable { super.before(); verboseExceptions.before(); refreshVerboseExceptions(); }
@Override protected void before() throws Throwable { super.before(); start(); }
@Override protected void before() throws Throwable { super.before(); start(); }
/** * Invoked by JUnit to setup the resource - start the embedded ActiveMQ Artemis server */ @Override protected void before() throws Throwable { log.info("Starting {}: {}", this.getClass().getSimpleName(), getServerName()); this.start(); super.before(); }
/** * Start the embedded ActiveMQ Broker * <p> * Invoked by JUnit to setup the resource */ @Override protected void before() throws Throwable { log.info("Starting {}: {}", this.getClass().getSimpleName(), getServerName()); this.start(); super.before(); }
@Override protected void before() throws Throwable { super.before(); if (!hasConfiguredExporters()) { start(); } }
@Override protected void before() throws Throwable { super.before(); this.env = new HashMap<>(); this.env.putAll(System.getenv()); }
@Override public void before() throws Throwable { super.before(); SpawnedVMSupport.enableCheck(); } }
@Override protected void before() throws Throwable { super.before(); pushOpts = new PushOptionsImpl(); setCommonOpts(pushOpts); pushOpts.setCopyTrans(false); pullOpts = new PullOptionsImpl(); setCommonOpts(pullOpts); }
@Override protected void before() throws Throwable { this.coordinator = new LocalClusterCoordinator(); coordinator.start(); node = new SabotNode(dConfig, coordinator); node.run(); final String tmpDirPath = temporaryFolder.newFolder().getPath(); TestUtilities.addDefaultTestPlugins(node.getBindingProvider().lookup(CatalogService.class), tmpDirPath); super.before(); }