If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.
Spring Boot 1.4 changed their annotation system a little. Try using the @SpringBootApplication annotation for better results.
You have a different solution? A short tip here would help you and many other users who saw this issue last week.
- java.lang.IllegalStateException: Not all instances were looked at at org.springframework.util.Assert.state(Assert.java:385)