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 Type
    Method
    Description
    static void
    reportAndClear(List<org.junit.platform.engine.DiscoveryIssue> issues, org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter)
    Report and clear the given list of DiscoveryIssues using the supplied DiscoveryIssueReporter.
    void
    validate(org.junit.platform.engine.support.discovery.DiscoveryIssueReporter reporter)
    Validate the state of this descriptor and report any issues found to the supplied DiscoveryIssueReporter.
  • 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 supplied DiscoveryIssueReporter.
    • 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 of DiscoveryIssues using the supplied DiscoveryIssueReporter.