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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceA change to the local project. -
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) Creates a newChangesinstance from the givenModifiedFiles.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() -
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
-