Interface Validatable
- All Known Implementing Classes:
ClassBasedTestDescriptor, ClassTemplateTestDescriptor, ClassTestDescriptor, MethodBasedTestDescriptor, NestedClassTestDescriptor, TestFactoryTestDescriptor, TestMethodTestDescriptor, TestTemplateInvocationTestDescriptor, TestTemplateTestDescriptor
@API(status=INTERNAL,
since="5.13")
public interface Validatable
Interface for descriptors that can be validated during discovery.
- Since:
- 5.13
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidreportAndClear(List<org.junit.platform.engine.DiscoveryIssue> issues, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter) Report and clear the given list ofDiscoveryIssues using the suppliedDiscoveryIssueReporter.voidvalidate(org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter) Validate the state of this descriptor and report any issues found to the suppliedDiscoveryIssueReporter.
-
Method Details
-
validate
void validate(org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter) Validate the state of this descriptor and report any issues found to the suppliedDiscoveryIssueReporter. -
reportAndClear
static void reportAndClear(List<org.junit.platform.engine.DiscoveryIssue> issues, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter) Report and clear the given list ofDiscoveryIssues using the suppliedDiscoveryIssueReporter.
-