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/runners/parameterized/TestWithParameters.java
package org.junit.runners.parameterized;
import static java.util.Collections.unmodifiableList;
import static org.junit.internal.Checks.notNull;
import java.util.ArrayList;
import java.util.List;
import org.junit.runners.model.TestClass;
/**
* A {@code TestWithParameters} keeps the data together that are needed for
* creating a runner for a single data set of a parameterized test. It has a
* name, the test class and a list of parameters.
*
* @since 4.12
*/
public class TestWithParameters {
private final String name;
private final TestClass testClass;
private final List<Object> parameters;
public TestWithParameters(String name, TestClass testClass,
List<Object> parameters) {
notNull(name, "The name is missing.");
notNull(testClass, "The test class is missing.");
notNull(parameters, "The parameters are missing.");
this.name = name;
this.testClass = testClass;
this.parameters = unmodifiableList(new ArrayList<Object>(parameters));
}
public String getName() {
return name;
}
public TestClass getTestClass() {
return testClass;
}
public List<Object> getParameters() {
return parameters;
}
@Override
public int hashCode() {
int prime = 14747;
int result = prime + name.hashCode();
result = prime * result + testClass.hashCode();
return prime * result + parameters.hashCode();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
TestWithParameters other = (TestWithParameters) obj;
return name.equals(other.name)
&& parameters.equals(other.parameters)
&& testClass.equals(other.testClass);
}
@Override
public String toString() {
return testClass.getName() + " '" + name + "' with parameters "
+ parameters;
}
}
⏎ org/junit/runners/parameterized/TestWithParameters.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, ≈81🔥, 0💬
Popular Posts:
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
commons-net.jar is the bytecode of Apache Commons Net library, which implements the client side of m...
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...