@SelectMethod is a repeatable annotation that
specifies a method to select when running a test suite on the JUnit
Platform.
Suite, org.junit.platform.engine.discovery.DiscoverySelectors#selectMethod(String) , org.junit.platform.engine.discovery.DiscoverySelectors#selectMethod(String, String, String) , org.junit.platform.engine.discovery.DiscoverySelectors#selectMethod(String, String, Class...) , org.junit.platform.engine.discovery.DiscoverySelectors#selectMethod(Class, String, String) , org.junit.platform.engine.discovery.DiscoverySelectors#selectMethod(Class, String, Class...)
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Class | |
| public Class | |
| public String | |
| public String |
| name | back to summary |
|---|---|
| public String name() The name of the method to select; never blank unless | |
| parameterTypeNames | back to summary | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String parameterTypeNames() The parameter types of the method to select. This is typically a comma-separated list of atomic types, fully qualified class names, or array types; however, the exact syntax depends on the underlying test engine. If the method takes no parameters, this attribute must be an empty string. Array parameter types may be specified using either the JVM's internal
String representation (e.g.,
Cannot be used in conjunction with | |||||||||||||||||||||||||
| parameterTypes | back to summary |
|---|---|
| public Class The parameter types of the method to select. Cannot be used in conjunction with | |
| type | back to summary |
|---|---|
| public Class The class in which the method is declared, or a subclass thereof. Cannot be used in conjunction with | |
| typeName | back to summary |
|---|---|
| public String typeName() The fully qualified class name in which the method is declared, or a subclass thereof. Cannot be used in conjunction with | |
| value | back to summary | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String value() The fully qualified method name of the method to select. The following formats are supported.
The parameter type list is a comma-separated list of primitive names or fully qualified class names for the types of parameters accepted by the method. Array parameter types may be specified using either the JVM's internal
String representation (e.g.,
Cannot be combined with any other attribute. | |||||||||||||||||||||||||||