Interface ImportOption
-
- All Known Implementing Classes:
ImportOption.DoNotIncludeArchives
,ImportOption.DoNotIncludeJars
,ImportOption.DoNotIncludeTests
,ImportOption.Predefined
@PublicAPI(usage=INHERITANCE) public interface ImportOption
Will be evaluated for every class location, to determine if the class should be imported.
IMPORTANT: For things like caching to work, it's important that the behavior of any implementation is constant, i.e. throughout the whole run of a test suite, for anyLocation
x, the result ofimportOption.includes(x)
must return the same value on consecutive calls for EVERY instance of the custom implementation ofImportOption
.
In other words, if you for example create a custom implementation ofImportOption
, where you look at some test specific file, if a certain class should be imported, this will cause wrong caching (i.e. the second run will assume, the classes are already cached, because it can't be determined that theImportOption
would choose different classes to be selected for this run)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ImportOption.DoNotIncludeArchives
static class
ImportOption.DoNotIncludeJars
static class
ImportOption.DoNotIncludeTests
NOTE: This excludes all class files residing in some directory ../target/test-classes/.., ../build/classes/test/..static class
ImportOption.Predefined
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
includes(Location location)
-
-
-
Method Detail
-
includes
boolean includes(Location location)
-
-