Restito 0.9.x and later is written with Java 8 and will require the project to use Java 8 as well. Besides that, most of the end users will not even notice the difference as the main API stays fully backwards compatible, unless they created custom actions, or used some internal classes/interfaces.
There are some legacy functional interfaces, originally from Guava, that can be replaced with lambda expressions:
com.xebialabs.restito.semantics.Function
- replace all the occurrences with lambda expressions, or withjava.util.function.Function
.com.xebialabs.restito.semantics.Predicate
- replace all the occurrences with lambda expressions, or withjava.util.function.Predicate
.
com.xebialabs.restito.support.behavior.Behavior
and theStubServer
constructor which depends on it... It wasn't really documented, don't think anyone will miss it.