/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
@Override public boolean shouldRun(Description description) { if (this.description.equals(description)) { successful = true; return false; } return true; }
@Override public boolean shouldRun(Description description) { if (description.isTest()) { return desiredDescription.equals(description); } // explicitly check if any children want to run for (Description each : description.getChildren()) { if (shouldRun(each)) { return true; } } return false; }
@Override public boolean shouldRun(Description description) { if (description.isTest()) { return desiredDescription.equals(description); } // explicitly check if any children want to run for (Description each : description.getChildren()) { if (shouldRun(each)) { return true; } } return false; }
@Override public boolean shouldRun(Description description) { if (description.isTest()) { return desiredDescription.equals(description) || isParameterizedMethod(description); } // explicitly check if any children want to run for (Description each : description.getChildren()) { if (shouldRun(each)) { return true; } } return false; }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
@Override public boolean shouldRun(Description description) { if (description.isTest()) { return desiredDescription.equals(description); } // explicitly check if any children want to run for (Description each : description.getChildren()) { if (shouldRun(each)) { return true; } } return false; }
@Override public boolean equals(Object obj) { if (!(obj instanceof JUnit4TestReference)) return false; JUnit4TestReference ref = (JUnit4TestReference) obj; return (ref.description.equals(description)); }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
/** * @return true if this is a description of a Runner that runs no tests */ public boolean isEmpty() { return equals(EMPTY); }
private Failure findAssociatedFailure(Description d, List<Failure> failureList) { for (Failure f : failureList) { if (f.getDescription().equals(d)) { return f; } } return null; }
public void testRunStarted(Description description) { if (description != null && !description.equals(currentTest)){ currentTest = description; resetAppender(); log.info("Starting test execution ======[{}]======", description); } }
@Subscribe public void receiveTestEnd(TestFinishedEvent e) { assert e.getDescription().equals(tests.peek().getDescription()); tests.peek().complete(e, new ArrayList<>(eventStream.subList(testStartStreamMarker, eventStream.size()))); target.post(tests.peek()); }
@Subscribe public void receiveTestEnd(TestFinishedEvent e) { assert e.getDescription().equals(tests.peek().getDescription()); tests.peek().complete(e, new ArrayList<>(eventStream.subList(testStartStreamMarker, eventStream.size()))); target.post(tests.peek()); }
@Override public void testFailure(Failure failure) throws Exception { if (failure.getDescription().equals(Description.TEST_MECHANISM)) { notifier.fireInternalError("Failure in JUnit test mechanism", failure.getException()); } } }
@Override public void testFailure(Failure failure) throws Exception { if (suiteDescription.equals(failure.getDescription())) { serializer.serialize(new SuiteFailureEvent(failure)); } else { serializer.serialize(new TestFailureEvent(failure)); } }
@Subscribe public void receiveTestAssumptionIgnored(TestIgnoredAssumptionEvent e) { Description description = e.getDescription(); if (description.getMethodName() == null) { // Don't record suite-level assumptions. They result in ignored // tests that RandomizedRunner reports and JUnit runner ignores // as if a suite didn't have any tests. return; } assert e.getDescription().equals(tests.peek().getDescription()); tests.peek().addFailure(e.getFailure()); }