private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable e) { errors.add(e); } }
private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable t) { errors.add(t); } }
@Override protected void starting(Description description) { super.starting(description); JqLog.setCustomLogger(logger); }
@Override protected void starting(Description description) { super.starting(description); className = description.getClassName(); memWatcher = new MemWatcher(); }
@Override protected void starting(Description description) { super.starting(description); try { drillbitLoader = new DrillbitClassLoader(); drillbitLoader.loadClass("org.apache.commons.io.FileUtils"); rootClassLoader = Thread.currentThread().getContextClassLoader(); Class<?> clazz = drillbitLoader.loadClass("org.apache.drill.test.BaseTestQuery"); Class<?> watcherClazz = drillbitLoader.loadClass("org.apache.drill.test.BaseDirTestWatcher"); // Setup tmp dirs runMethod("starting", description); // Configure tmp dir Object watcher = clazz.getField("dirTestWatcher").get(null); Method method = watcherClazz.getDeclaredMethod("getTmpDir"); File tmpDir = (File) method.invoke(watcher); System.setProperty("DRILL_CONF_DIR", tmpDir.getAbsolutePath()); // Start the drill cluster try { runWithLoader("DrillbitStartThread", drillbitLoader); } catch (Exception e) { printClassesLoaded("root", rootClassLoader); throw e; } DrillbitStartThread.SEM.acquire(); // After starting the drill cluster get the client port userPort = (Integer) clazz.getMethod("getUserPort").invoke(null); } catch (Exception e) { throw new RuntimeException(e); } }
private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable t) { errors.add(t); } }
@Override protected void starting(org.junit.runner.Description description) { super.starting(description); } };
private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable e) { errors.add(e); } }
private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable t) { errors.add(t); } }
private void startingQuietly(Description description, List<Throwable> errors) { try { starting(description); } catch (Throwable t) { errors.add(t); } }
@Override public void starting(Description description) { theory = description; if (!approvers.containsKey(description)) approvers.put(theory, factory.createApprover(testNamer.nameFor(description), TheoryApprovalsRule.this.description.getTestClass())); super.starting(description); }
@Override protected void starting(final Description description) { super.starting(description); servletContext = mock(ServletContext.class); fakeContextProviderListener = new ServletContextProviderListener(); fakeContextProviderListener.contextInitialized(new ServletContextEvent(servletContext)); }
@Override protected void starting(Description description) { super.starting(description); className = description.getClassName(); memWatcher = new MemWatcher(); }
@Override protected void starting(Description description) { super.starting(description); logParser.err.setSink(error); logParser.parsedOutput.setSink(pojoPort); }
@Override protected void starting(Description description) { super.starting(description); reportManager.createNewExtentTest(description.getMethodName()); reportManager.getExtentTest() .info(String.format("Starting Test=%s", description.getMethodName())); reportManager.setAuthor(description); reportManager.setCategory(description); }
@Override protected void starting(Description description) { super.starting(description); commonLogParser.err.setSink(error); commonLogParser.parsedOutput.setSink(pojoPort); }
@Override protected void starting(org.junit.runner.Description description) { Attribute.AttributeMap portAttributes = new Attribute.AttributeMap.DefaultAttributeMap(); portAttributes.put(Context.PortContext.TUPLE_CLASS, SimpleOrder.class); portContext = new TestPortContext(portAttributes); super.starting(description); avroWriter.output.setSink(outputSink); }
@Override protected void starting(org.junit.runner.Description description) { Attribute.AttributeMap portAttributes = new Attribute.AttributeMap.DefaultAttributeMap(); portAttributes.put(Context.PortContext.TUPLE_CLASS, SimpleOrder.class); portContext = new TestPortContext(portAttributes); super.starting(description); avroReader.output.setSink(outputSink); createReaderInput(); }
@Override protected void starting(Description description) { super.starting(description); parser.err.setSink(error); parser.parsedOutput.setSink(objectPort); parser.out.setSink(pojoPort); parser.setClazz(Product.class); parser.setJsonSchema(SchemaUtils.jarResourceFileToString(filename)); parser.setup(null); }
@Override protected void starting(Description description) { super.starting(description); parser.setClazz(Ad.class); parser.setSchema(SchemaUtils.jarResourceFileToString(filename)); parser.setup(null); parser.err.setSink(error); parser.parsedOutput.setSink(objectPort); parser.out.setSink(pojoPort); }