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, ≈109🔥, 0💬
Popular Posts:
Where to get the Java source code for Connector/J 8.0 Protocol Impl module? Java source code files f...
JDK 17 jdk.incubator.vector.jmo dis the JMOD file for JDK 17 HTTP Server module. JDK 17 Incubator Ve...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
JBrowser Source Code Files are provided in the source package file. You can download JBrowser source...