Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JUnit 4.13.2 Source Code Files
JUnit Source Code Files are provided in the
source package file, junit-4.13.2-sources.jar.
You can browse JUnit Source Code files below:
✍: FYIcenter.com
⏎ org/junit/internal/runners/model/EachTestNotifier.java
package org.junit.internal.runners.model;
import org.junit.internal.AssumptionViolatedException;
import org.junit.runner.Description;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.MultipleFailureException;
public class EachTestNotifier {
private final RunNotifier notifier;
private final Description description;
public EachTestNotifier(RunNotifier notifier, Description description) {
this.notifier = notifier;
this.description = description;
}
public void addFailure(Throwable targetException) {
if (targetException instanceof MultipleFailureException) {
addMultipleFailureException((MultipleFailureException) targetException);
} else {
notifier.fireTestFailure(new Failure(description, targetException));
}
}
private void addMultipleFailureException(MultipleFailureException mfe) {
for (Throwable each : mfe.getFailures()) {
addFailure(each);
}
}
public void addFailedAssumption(AssumptionViolatedException e) {
notifier.fireTestAssumptionFailed(new Failure(description, e));
}
public void fireTestFinished() {
notifier.fireTestFinished(description);
}
public void fireTestStarted() {
notifier.fireTestStarted(description);
}
public void fireTestIgnored() {
notifier.fireTestIgnored(description);
}
/**
* Calls {@link RunNotifier#fireTestSuiteStarted(Description)}, passing the
* {@link Description} that was passed to the {@code EachTestNotifier} constructor.
* This should be called when a test suite is about to be started.
* @see RunNotifier#fireTestSuiteStarted(Description)
* @since 4.13
*/
public void fireTestSuiteStarted() {
notifier.fireTestSuiteStarted(description);
}
/**
* Calls {@link RunNotifier#fireTestSuiteFinished(Description)}, passing the
* {@link Description} that was passed to the {@code EachTestNotifier} constructor.
* This should be called when a test suite has finished, whether the test suite succeeds
* or fails.
* @see RunNotifier#fireTestSuiteFinished(Description)
* @since 4.13
*/
public void fireTestSuiteFinished() {
notifier.fireTestSuiteFinished(description);
}
}⏎ org/junit/internal/runners/model/EachTestNotifier.java
Or download all of them as a single archive file:
File name: junit-4.13.2-sources.jar File size: 234540 bytes Release date: 2021-02-13 Download
⇒ Download and Install junit-4.12.jar
⇐ Download and Install junit-4.13.2.jar
2016-03-28, ≈89🔥, 0💬
Popular Posts:
Where to get the Java source code for Connector/J 8.0 Protocol Impl module? Java source code files f...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
What JAR files are required to run sax\Writer.java provided in the Apache Xerces package? 1 JAR file...
HttpComponents Core Source Code Files are provided in the source package file, httpcomponents-core-5...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....