コード例 #1
0
 @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);
 }
コード例 #2
0
 @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));
 }
コード例 #3
0
 @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));
 }