Class Changes
java.lang.Object
org.springframework.modulith.junit.Changes
- All Implemented Interfaces:
Iterable<Changes.Change>
A set of
Changes.Changes made to a Java project.- Author:
- Lukas Dohmen, David Bilge, Oliver Drotbohm, Valentin Bossi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceA change to the local project.(package private) static enumWhether to either execute or skip all test in case no changes where detected. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription(package private) boolean(package private) booleanReturns whether a build-related resource has changed.(package private) boolean(package private) booleanReturns whether the current changes contain a change to a classpath resource, i.e. a non-source file that lives on the classpath.(package private) booleanisEmpty()Returns whether there are any changes at all.iterator()(package private) static Changesof(Stream<ModifiedFile> files, Changes.OnNoChange onNoChange) Creates a newChangesinstance from the givenModifiedFiles.(package private) booleanReturns whether we should skip test execution in case of no changes.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
-
Method Details
-
of
Creates a newChangesinstance from the givenModifiedFiles.- Parameters:
files- must not be null.- Returns:
- will never be null.
-
isEmpty
boolean isEmpty()Returns whether there are any changes at all. -
getChangedClasses
-
hasClassChanges
boolean hasClassChanges() -
skipTestsOnNoChanges
boolean skipTestsOnNoChanges()Returns whether we should skip test execution in case of no changes.- Since:
- 2.1
-
contains
-
hasBuildResourceChanges
boolean hasBuildResourceChanges()Returns whether a build-related resource has changed.- Returns:
-
hasClasspathResourceChange
boolean hasClasspathResourceChange()Returns whether the current changes contain a change to a classpath resource, i.e. a non-source file that lives on the classpath. -
iterator
- Specified by:
iteratorin interfaceIterable<Changes.Change>
-
toString
-