Class ReferenceCommitDetector
java.lang.Object
org.springframework.modulith.junit.diff.ReferenceCommitDetector
- All Implemented Interfaces:
FileModificationDetector
Implementation to get changes between HEAD and a complete or abbreviated SHA-1 or other revision, like
HEAD~2
. See Repository.resolve(String)
for more information.- Author:
- Lukas Dohmen, David Bilge, Oliver Drotbohm
-
Field Summary
Fields inherited from interface org.springframework.modulith.junit.diff.FileModificationDetector
CONFIG_PROPERTY_PREFIX
-
Constructor Summary
ConstructorDescriptionReferenceCommitDetector
(String referenceCommit) Creates a newReferenceCommitDetector
for the given reference commit. -
Method Summary
Modifier and TypeMethodDescriptionReturns allModifiedFile
s detected.static String
getReferenceCommitProperty
(PropertyResolver propertyResolver)
-
Constructor Details
-
ReferenceCommitDetector
Creates a newReferenceCommitDetector
for the given reference commit.- Parameters:
referenceCommit
- can be null.
-
-
Method Details
-
getModifiedFiles
Description copied from interface:FileModificationDetector
Returns allModifiedFile
s detected.- Specified by:
getModifiedFiles
in interfaceFileModificationDetector
- Returns:
- will never be null.
-
getReferenceCommitProperty
-