Class ModuleLookup.JUnitPlatform

java.lang.Object
com.github.sormuras.bach.project.ModuleLookup.JUnitPlatform
All Implemented Interfaces:
ModuleLookup
Direct Known Subclasses:
ModuleLookups.JUnitPlatform_1_7
Enclosing interface:
ModuleLookup

public static class ModuleLookup.JUnitPlatform extends Object implements ModuleLookup
Maps well-known JUnit Platform module names to their Maven Central artifacts.
  • Constructor Details

    • JUnitPlatform

      public JUnitPlatform(String version)
      Constructs a new module searcher with the given version.
      Parameters:
      version - the version
  • Method Details

    • lookup

      public Optional<String> lookup(String module)
      Description copied from interface: ModuleLookup
      Returns an optional uniform resource identifier for the given module name.
      Specified by:
      lookup in interface ModuleLookup
      Parameters:
      module - the name of the module to lookup
      Returns:
      a string-representation of a uniform resource identifier wrapped in an optional object