@Given("^a head version \"([^\"]*)\"$") public void a_head_version(String arg1) throws Throwable { version = new Version(); version.setVersion(arg1); version.setsci(sci); versRepo.save(version); }
@When("^I request a new feature$") public void i_request_a_new_feature() throws Throwable { result = mockMvc.perform( post("/sendReq") .param("reqType", "fault") .param("version", version.getVersion()) .param("problem", problem) .param("solution", solution)); }
@When("^I request a change request for reporting a fault$") public void i_request_a_change_request_for_reporting_a_fault() throws Throwable { result = mockMvc.perform( post("/sendReq") .param("reqType", "fault") .param("version", version.getVersion()) .param("problem", problem) .param("solution", solution)); }