Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/model/NoGenericTypeParametersValidator.java
package org.junit.runners.model; import java.lang.reflect.GenericArrayType; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.lang.reflect.WildcardType; import java.util.List; class NoGenericTypeParametersValidator { private final Method method; NoGenericTypeParametersValidator(Method method) { this.method = method; } void validate(List<Throwable> errors) { for (Type each : method.getGenericParameterTypes()) { validateNoTypeParameterOnType(each, errors); } } private void validateNoTypeParameterOnType(Type type, List<Throwable> errors) { if (type instanceof TypeVariable<?>) { errors.add(new Exception("Method " + method.getName() + "() contains unresolved type variable " + type)); } else if (type instanceof ParameterizedType) { validateNoTypeParameterOnParameterizedType((ParameterizedType) type, errors); } else if (type instanceof WildcardType) { validateNoTypeParameterOnWildcardType((WildcardType) type, errors); } else if (type instanceof GenericArrayType) { validateNoTypeParameterOnGenericArrayType((GenericArrayType) type, errors); } } private void validateNoTypeParameterOnParameterizedType(ParameterizedType parameterized, List<Throwable> errors) { for (Type each : parameterized.getActualTypeArguments()) { validateNoTypeParameterOnType(each, errors); } } private void validateNoTypeParameterOnWildcardType(WildcardType wildcard, List<Throwable> errors) { for (Type each : wildcard.getUpperBounds()) { validateNoTypeParameterOnType(each, errors); } for (Type each : wildcard.getLowerBounds()) { validateNoTypeParameterOnType(each, errors); } } private void validateNoTypeParameterOnGenericArrayType( GenericArrayType arrayType, List<Throwable> errors) { validateNoTypeParameterOnType(arrayType.getGenericComponentType(), errors); } }
⏎ org/junit/runners/model/NoGenericTypeParametersValidator.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, 11489👍, 0💬
Popular Posts:
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...