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/Checks.java
package org.junit.internal;
/** @since 4.13 */
public final class Checks {
private Checks() {}
/**
* Checks that the given value is not {@code null}.
*
* @param value object reference to check
* @return the passed-in value, if not {@code null}
* @throws NullPointerException if {@code value} is {@code null}
*/
public static <T> T notNull(T value) {
if (value == null) {
throw new NullPointerException();
}
return value;
}
/**
* Checks that the given value is not {@code null}, using the given message
* as the exception message if an exception is thrown.
*
* @param value object reference to check
* @param message message to use if {@code value} is {@code null}
* @return the passed-in value, if not {@code null}
* @throws NullPointerException if {@code value} is {@code null}
*/
public static <T> T notNull(T value, String message) {
if (value == null) {
throw new NullPointerException(message);
}
return value;
}
}
⏎ org/junit/internal/Checks.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, ≈101🔥, 0💬
Popular Posts:
JDK 17 java.sql.jmod is the JMOD file for JDK 17 SQL (Structured Query Language) module. JDK 17 SQL ...
How to perform XML Schema validation with sax\Writer.java provided in the Apache Xerces package? You...
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
JDK 17 java.sql.rowset.jmod is the JMOD file for JDK 17 SQL Rowset module. JDK 17 SQL Rowset module ...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...