TestSource.
This class stores the method name along with the names of its parameter
types because Method does not implement java..
org.junit.platform.engine.discovery.MethodSelector
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private @Nullable Class | |
| private transient @Nullable Method | |
| private final String | |
| private final @Nullable String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static MethodSource | |
| public static MethodSource | from(String
the class name; must not be className, String null or blankthe method name; must not be methodName, String null or blanka comma-separated list of fully qualified
class names representing the method parameter types methodParameterTypes)Create a new |
| public static MethodSource | from(String
the class name; must not be className, String null or blankthe method name; must not be methodName, Class<?>... null or blanka varargs array of classes representing the
method parameter types methodParameterTypes)Create a new |
| public static MethodSource | |
| public static MethodSource | |
| public String | |
| public Class | |
| public Method | |
| public String | |
| public @Nullable String | |
| public int | |
| private Class | |
| private Method | |
| public String |
| className | back to summary |
|---|---|
| private final String className | |
| javaClass | back to summary |
|---|---|
| private @Nullable Class<?> javaClass | |
| javaMethod | back to summary |
|---|---|
| private transient @Nullable Method javaMethod | |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| methodParameterTypes | back to summary |
|---|---|
| private final @Nullable String methodParameterTypes | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| MethodSource | back to summary |
|---|---|
| private MethodSource(String className, String methodName) | |
| MethodSource | back to summary |
|---|---|
| private MethodSource(String className, String methodName, @Nullable String methodParameterTypes) | |
| MethodSource | back to summary |
|---|---|
| private MethodSource(Method testMethod) | |
| MethodSource | back to summary |
|---|---|
private MethodSource(Class<?> testClass, Method testMethod)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| from | back to summary |
|---|---|
| public static MethodSource from(String className, String methodName) Create a new | |
| from | back to summary |
|---|---|
| public static MethodSource from(String className, String methodName, String methodParameterTypes) Create a new | |
| from | back to summary |
|---|---|
| public static MethodSource from(String className, String methodName, Class<?>... methodParameterTypes) Create a new | |
| from | back to summary |
|---|---|
| public static MethodSource from(Method testMethod) Create a new
| |
| from | back to summary |
|---|---|
| public static MethodSource from(Class<?> testClass, Method testMethod) Create a new This method should be used in favor of | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Get the class name of this source. | |
| getJavaClass | back to summary |
|---|---|
| public Class Get the Java class of this source. If the
| |
| getJavaMethod | back to summary |
|---|---|
| public Method getJavaMethod() Get the Java method of this source. If the
| |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Get the method name of this source. | |
| getMethodParameterTypes | back to summary |
|---|---|
| public @Nullable String getMethodParameterTypes() Get the method parameter types of this source. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lazyLoadJavaClass | back to summary |
|---|---|
| private Class | |
| lazyLoadJavaMethod | back to summary |
|---|---|
| private Method lazyLoadJavaMethod() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |