Skip to content

Instantly share code, notes, and snippets.

View thecodinganalyst's full-sized avatar
🏠
Working from home

Dennis Cai thecodinganalyst

🏠
Working from home
View GitHub Profile
@alexfdz
alexfdz / CustomerStepDefinitions.java
Created June 8, 2013 12:48
Cucumber + Spring MVC Test: Multiple step definitions entities with a shared context
@WebAppConfiguration
@ContextConfiguration("classpath:cucumber.xml")
public class CustomerStepDefinitions {
@Autowired
protected StepDefinitionsContext context;
@When("^I search for all the exisiting resources and format \"([^\"]*)\"$")
public void I_search_for_all_the_exisiting_resources_and_format(String mediaType) throws Throwable {
MediaType requestedMediatype = MediaType.parseMediaTypes(mediaType).get(0);