In the Manual Configuration chapter, Start POMs section, the out of date code does not work. I have downloaded all the recent releases, but two of the annotations have been removed and replaced.
//import org.springframework.boot.test.SpringApplicationConfiguration;
//@SpringApplicationConfiguration(Application.class)
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest(classes = Application.class)
//import org.springframework.boot.test.WebIntegrationTest;
//@WebIntegrationTest()
import org.springframework.test.context.web.WebAppConfiguration;
@WebAppConfiguration
public class ApplicationTest { ...
Right-click on ApplicationTest.java > Run as JUnit test now works 🙂
I have been a software developer since 2004 and have worked in many different languages. I started off using scripting languages on the web and transitioned into Enterprise Java development. I have worked as a Team Leader and independent contractor in this capacity. I then decided to take a break, before changing direction to create apps for mobile devices. I changed languages and focused more on the business and design side of things for a while. However, I'm getting pretty jaded by the new and shiny, so I am going back to what I know best and retraining in all the new Java ways and really enjoying the process. My Java 8 certification was the start, this blog will tell the rest of the story.
View all posts by backtojavaland