Interface ImportOption
-
- All Known Implementing Classes:
ImportOption.DoNotIncludeArchives,ImportOption.DoNotIncludeJars,ImportOption.DoNotIncludeTests,ImportOption.DontIncludeArchives,ImportOption.DontIncludeJars,ImportOption.DontIncludeTests,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 anyLocationx, 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 theImportOptionwould choose different classes to be selected for this run)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classImportOption.DoNotIncludeArchivesstatic classImportOption.DoNotIncludeJarsstatic classImportOption.DoNotIncludeTestsNOTE: This excludes all class files residing in some directory ../target/test-classes/.., ../build/classes/test/..static classImportOption.DontIncludeArchivesDeprecated.Decided to consistently never use contractions -> useImportOption.DoNotIncludeArchivesstatic classImportOption.DontIncludeJarsDeprecated.Decided to consistently never use contractions -> useImportOption.DoNotIncludeJarsstatic classImportOption.DontIncludeTestsDeprecated.Decided to consistently never use contractions -> useImportOption.DoNotIncludeTestsstatic classImportOption.Predefined
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanincludes(Location location)
-
-
-
Method Detail
-
includes
boolean includes(Location location)
-
-