Package com.tngtech.archunit.junit
Interface LocationProvider
-
@PublicAPI(usage=INHERITANCE) public interface LocationProvider
Allows to provide a custom implementation, that suppliesLocations
to be imported by the JUnit test infrastructure.The implementation must offer a public default (i.e. no arg) constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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
-
-