Class DeclaredMethodSelector
java.lang.Object
org.junit.jupiter.engine.discovery.DeclaredMethodSelector
- All Implemented Interfaces:
DiscoverySelector
Jupiter-specific selector for methods, potentially in nested classes.
The important difference to MethodSelector is that this selector's
equals(Object) method takes into account the selected method's
declaring class to support cases
where a package-private method is declared in a super class in a different
package and a method with the same signature is declared in a subclass. In
that case both methods should be discovered because the one declared in the
subclass does not override the one in the super class.
- Since:
- 5.14.1
-
Field Details
-
testClasses
-
method
-
-
Constructor Details
-
DeclaredMethodSelector
-
-
Method Details
-
testClasses
-
method
Method method() -
equals
-
hashCode
-