Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- affectsBuildResource() - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Returns whether the change affects a build resource.
- asRelativeTo(String) - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns the current
ModifiedFileas relative to the given reference path.
C
- changes() - Method in record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Returns the value of the
changesrecord component. - Changes - Class in org.springframework.modulith.junit
-
A set of
Changes.Changes made to a Java project. - Changes.Change - Interface in org.springframework.modulith.junit
-
A change to the local project.
- Changes.Change.JavaSourceChange - Record Class in org.springframework.modulith.junit
-
A change in a Java source file.
- Changes.Change.JavaTestSourceChange - Record Class in org.springframework.modulith.junit
-
A change in a Java test source file.
- Changes.Change.KotlinSourceChange - Record Class in org.springframework.modulith.junit
-
A change in a Kotlin source file.
- Changes.Change.KotlinTestSourceChange - Record Class in org.springframework.modulith.junit
-
A change in a Kotlin test source file.
- Changes.Change.LanguageConfig - Record Class in org.springframework.modulith.junit
- Changes.Change.OtherFileChange - Record Class in org.springframework.modulith.junit
-
Some arbitrary file change.
- Changes.Change.SourceChange - Interface in org.springframework.modulith.junit
-
A change to a source file.
- ConditionContext(Class<?>, Changes) - Constructor for record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Creates an instance of a
ConditionContextrecord class. - CONFIG_PROPERTY_PREFIX - Static variable in interface org.springframework.modulith.junit.diff.FileModificationDetector
- contains(Class<?>) - Method in class org.springframework.modulith.junit.Changes
E
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.JavaSourceChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinSourceChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinTestSourceChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Indicates whether some other object is "equal to" this one.
- evaluate(TestExecutionCondition.ConditionContext) - Method in class org.springframework.modulith.junit.TestExecutionCondition
- evaluateExecutionCondition(ExtensionContext) - Method in class org.springframework.modulith.junit.ModulithExecutionCondition
F
- FileModificationDetector - Interface in org.springframework.modulith.junit.diff
-
SPI to plug different strategies of how to find the files currently modified in a project.
- fullyQualifiedClassName() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaSourceChange
-
Returns the value of the
fullyQualifiedClassNamerecord component. - fullyQualifiedClassName() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
-
Returns the value of the
fullyQualifiedClassNamerecord component. - fullyQualifiedClassName() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinSourceChange
-
Returns the value of the
fullyQualifiedClassNamerecord component. - fullyQualifiedClassName() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinTestSourceChange
-
Returns the value of the
fullyQualifiedClassNamerecord component. - fullyQualifiedClassName() - Method in interface org.springframework.modulith.junit.Changes.Change.SourceChange
G
- getChangedClasses() - Method in class org.springframework.modulith.junit.Changes
- getChanges() - Method in class org.springframework.modulith.junit.StateStore
-
Returns all changes made to the project.
- getDetector(PropertyResolver) - Static method in interface org.springframework.modulith.junit.diff.FileModificationDetector
-
Returns the
FileModificationDetectorto be used. - getModifiedFiles() - Method in interface org.springframework.modulith.junit.diff.FileModificationDetector
-
Returns all
ModifiedFiles detected. - getModifiedFiles() - Method in class org.springframework.modulith.junit.diff.ReferenceCommitDetector
- getModifiedFiles() - Method in enum class org.springframework.modulith.junit.diff.UncommittedChangesDetector
- getModifiedFiles() - Method in enum class org.springframework.modulith.junit.diff.UnpushedCommitsDetector
- getModifiedFiles() - Method in class org.springframework.modulith.junit.diff.WorkingDirectoryChangesDetector
- getReferenceCommitProperty(PropertyResolver) - Static method in class org.springframework.modulith.junit.diff.ReferenceCommitDetector
- getTargetDetector(PropertyResolver) - Static method in interface org.springframework.modulith.junit.diff.FileModificationDetector
H
- hasBuildResourceChanges() - Method in class org.springframework.modulith.junit.Changes
-
Returns whether a build-related resource has changed.
- hasClassChanges() - Method in class org.springframework.modulith.junit.Changes
- hasClasspathResourceChange() - Method in class org.springframework.modulith.junit.Changes
-
Returns whether the current changes contain a change to a classpath resource, i.e. a non-source file that lives on the classpath.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaSourceChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinSourceChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinTestSourceChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Returns a hash code value for this object.
- hasOrigin(String) - Method in interface org.springframework.modulith.junit.Changes.Change
-
Returns whether the change has the given origin.
- hasOrigin(String) - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
- hasOrigin(String) - Method in interface org.springframework.modulith.junit.Changes.Change.SourceChange
I
- INSTANCE - Enum constant in enum class org.springframework.modulith.junit.diff.UncommittedChangesDetector
- INSTANCE - Enum constant in enum class org.springframework.modulith.junit.diff.UnpushedCommitsDetector
- isClasspathResource() - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Returns whether the change affects a classpath resource (in contrast to other resources).
- isEmpty() - Method in class org.springframework.modulith.junit.Changes
-
Returns whether there are any changes at all.
- isJavaSource() - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns whether the modified file is a Java source file.
- isKotlinSource() - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns whether the modified file is Kotlin source file.
- iterator() - Method in class org.springframework.modulith.junit.Changes
J
- JAVA - Static variable in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
- JavaSourceChange(String) - Constructor for record class org.springframework.modulith.junit.Changes.Change.JavaSourceChange
-
Creates an instance of a
JavaSourceChangerecord class. - JavaTestSourceChange(String) - Constructor for record class org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
-
Creates an instance of a
JavaTestSourceChangerecord class. - JGitUtil - Interface in org.springframework.modulith.junit.diff
-
Utility to contain re-used JGit operations.
K
- KOTLIN - Static variable in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
- KotlinSourceChange(String) - Constructor for record class org.springframework.modulith.junit.Changes.Change.KotlinSourceChange
-
Creates an instance of a
KotlinSourceChangerecord class. - KotlinTestSourceChange(String) - Constructor for record class org.springframework.modulith.junit.Changes.Change.KotlinTestSourceChange
-
Creates an instance of a
KotlinTestSourceChangerecord class.
L
- LanguageConfig(String, String, Function<String, ? extends Changes.Change.SourceChange>, Function<String, ? extends Changes.Change.SourceChange>) - Constructor for record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Creates an instance of a
LanguageConfigrecord class. - log - Static variable in interface org.springframework.modulith.junit.diff.FileModificationDetector
M
- mainDir() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns the value of the
mainDirrecord component. - mainFactory() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns the value of the
mainFactoryrecord component. - ModifiedFile - Record Class in org.springframework.modulith.junit.diff
-
A modified file.
- ModifiedFile(String) - Constructor for record class org.springframework.modulith.junit.diff.ModifiedFile
-
Creates an instance of a
ModifiedFilerecord class. - ModulithExecutionCondition - Class in org.springframework.modulith.junit
-
JUnit Extension to optimize test execution based on which files have changed in a Spring Modulith project.
- ModulithExecutionCondition() - Constructor for class org.springframework.modulith.junit.ModulithExecutionCondition
N
O
- of(String...) - Static method in record class org.springframework.modulith.junit.diff.ModifiedFile
- of(Stream<ModifiedFile>) - Static method in class org.springframework.modulith.junit.Changes
-
Creates a new
Changesinstance from the givenModifiedFiles. - of(FileModificationDetector) - Static method in class org.springframework.modulith.junit.diff.WorkingDirectoryChangesDetector
-
Creates a new
WorkingDirectoryChangesDetectorfor the current Git repository-relative working directory. - of(ModifiedFile) - Static method in interface org.springframework.modulith.junit.Changes.Change
-
Creates a change from a modified file
- org.springframework.modulith.junit - package org.springframework.modulith.junit
-
JUnit extension to optimize test case execution depending of the changes made to an application.
- org.springframework.modulith.junit.diff - package org.springframework.modulith.junit.diff
-
Project differences detection implementation.
- OtherFileChange(String) - Constructor for record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Creates an instance of a
OtherFileChangerecord class.
P
- path() - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Returns the value of the
pathrecord component. - path() - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns the value of the
pathrecord component.
R
- ReferenceCommitDetector - Class in org.springframework.modulith.junit.diff
-
Implementation to get changes between HEAD and a complete or abbreviated SHA-1 or other revision, like
HEAD~2. - ReferenceCommitDetector(String) - Constructor for class org.springframework.modulith.junit.diff.ReferenceCommitDetector
-
Creates a new
ReferenceCommitDetectorfor the given reference commit.
S
- spring.modulith.junit - module spring.modulith.junit
- StateStore - Class in org.springframework.modulith.junit
- StateStore(ExtensionContext) - Constructor for class org.springframework.modulith.junit.StateStore
-
Creates a new
StateStorefor the givenExtensionContext.
T
- testClass() - Method in record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Returns the value of the
testClassrecord component. - testDir() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns the value of the
testDirrecord component. - TestExecutionCondition - Class in org.springframework.modulith.junit
-
Primary condition implementation that decides whether to run a test based on an
TestExecutionCondition.ConditionContext. - TestExecutionCondition() - Constructor for class org.springframework.modulith.junit.TestExecutionCondition
- TestExecutionCondition.ConditionContext - Record Class in org.springframework.modulith.junit
- testFactory() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns the value of the
testFactoryrecord component. - toChange(ModifiedFile) - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
- toModifiedFiles(Repository, String, String) - Static method in interface org.springframework.modulith.junit.diff.JGitUtil
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaSourceChange
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinSourceChange
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.KotlinTestSourceChange
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.LanguageConfig
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.Changes.Change.OtherFileChange
-
Returns a string representation of this record class.
- toString() - Method in class org.springframework.modulith.junit.Changes
- toString() - Method in record class org.springframework.modulith.junit.diff.ModifiedFile
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.modulith.junit.TestExecutionCondition.ConditionContext
-
Returns a string representation of this record class.
U
- UncommittedChangesDetector - Enum Class in org.springframework.modulith.junit.diff
-
Implementation to get latest local file changes.
- UnpushedCommitsDetector - Enum Class in org.springframework.modulith.junit.diff
-
Find all changes that have not been pushed to the remote branch yet.
V
- valueOf(String) - Static method in enum class org.springframework.modulith.junit.diff.UncommittedChangesDetector
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.modulith.junit.diff.UnpushedCommitsDetector
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.modulith.junit.diff.UncommittedChangesDetector
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.modulith.junit.diff.UnpushedCommitsDetector
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withRepository(ThrowingFunction<Repository, T>) - Static method in interface org.springframework.modulith.junit.diff.JGitUtil
- withTry(Supplier<A>, ThrowingFunction<A, T>) - Static method in interface org.springframework.modulith.junit.diff.JGitUtil
- withTry(ThrowingSupplier<T>) - Static method in interface org.springframework.modulith.junit.diff.JGitUtil
- WorkingDirectoryChangesDetector - Class in org.springframework.modulith.junit.diff
-
A
FileModificationDetectorthat filters theModifiedFileinstances returned by a delegateFileModificationDetectorto only contain those nested in the current, repository-relative working directory. - WorkingDirectoryChangesDetector(FileModificationDetector, String) - Constructor for class org.springframework.modulith.junit.diff.WorkingDirectoryChangesDetector
-
Creates a new
WorkingDirectoryChangesDetectorfor the givenFileModificationDetectordelegate and directory;
All Classes and Interfaces|All Packages|Constant Field Values