//spring initializer now produces a spring-boot project with the 'test' starter applied by default.
assertTrue(project.getBootStarters().isEmpty());
project.addStarter(knownStarters.get("web"));
//WARNING: presumably m2e model updates are asynchronous and we don't really know when the changes will be visible!
// the next assertion may fail when running at 'full speed'.
new ACondition("web starter added") {
public boolean test() throws Exception {
assertContainsStarters(project.getBootStarters(), "web");
return true;
}
}.waitFor(MAVEN_POM_REFRESH_TIMEOUT);
project.removeStarter(knownStarters.get("web"));
new ACondition("web starter removed") {
public boolean test() throws Exception {
assertTrue(project.getBootStarters().isEmpty()); //starter should be removed again.
return true;
}
}.waitFor(MAVEN_POM_REFRESH_TIMEOUT);