package <%=packageName%>.cucumber.stepdefs;

import <%=packageName%>.<%= mainClass %>;

import org.springframework.boot.test.SpringApplicationContextLoader;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.ResultActions;

@WebAppConfiguration
@ContextConfiguration(classes = <%= mainClass %>.class, loader = SpringApplicationContextLoader.class)
public abstract class StepDefs {

    protected ResultActions actions;

}

@@ -85,77 +85,8 @@
 %3E;%0A%0A
-import org.springframework.boot.test.SpringApplicationContextLoader;%0A
 impo
@@ -268,16 +268,78 @@
 tions;%0A%0A
+import org.springframework.boot.test.context.SpringBootTest;%0A%0A
 @WebAppC
@@ -351,16 +351,32 @@
 uration%0A
+@SpringBootTest%0A
 @Context
@@ -425,55 +425,8 @@
 lass
-, loader = SpringApplicationContextLoader.class
 )%0Apu

Fix cucumber tests after SB1.5.1 upgrade