Interface LocationProvider


@PublicAPI(usage=INHERITANCE)
public interface LocationProvider
Allows to provide a custom implementation, that supplies Locations to be imported by the JUnit test infrastructure.

The implementation must offer a public default (i.e. no arg) constructor.

  • Method Summary

    Modifier and Type Method Description
    java.util.Set<com.tngtech.archunit.core.importer.Location> get​(java.lang.Class<?> testClass)
    Returns locations to be imported for the current test run.
  • Method Details

    • get

      java.util.Set<com.tngtech.archunit.core.importer.Location> get​(java.lang.Class<?> testClass)
      Returns locations to be imported for the current test run. The test class parameter can for example be used to evaluate custom annotations on the current test class.
      Parameters:
      testClass - The class object of the test currently executed
      Returns:
      The locations to import