Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #37 from sbtqa/regexes_common_style
Browse files Browse the repository at this point in the history
bring regexes to common style
  • Loading branch information
kosteman authored May 11, 2018
2 parents e5ec909 + 79b1dd0 commit 3cbc372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class StepDefs extends GenericStepDefs {
* {@inheritDoc}
*/
@Override
@And("^user sends request (?:for|to|about) \\((.*?)\\)$")
@And("^user sends request (?:for|to|about) \\(([^)]*)\\)$")
public void userSendRequestNoParams(String action) throws ApiException {
super.userSendRequestNoParams(action);
}
Expand All @@ -21,7 +21,7 @@ public void userSendRequestNoParams(String action) throws ApiException {
* {@inheritDoc}
*/
@Override
@And("^user sends request (?:for|to|about) \\((.*?)\\) with parameters:?$")
@And("^user sends request (?:for|to|about) \\(([^)]*)\\) with parameters:?$")
public void userSendRequestTableParam(String action, DataTable dataTable) throws ApiException {
super.userSendRequestTableParam(action, dataTable);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class StepDefs extends GenericStepDefs {
* {@inheritDoc}
*/
@Override
@И("^(?:пользователь |он |)отправляет запрос \\((.*?)\\)$")
@И("^(?:пользователь |он )?отправляет запрос \\(([^)]*)\\)$")
public void userSendRequestNoParams(String action) throws ApiException {
super.userSendRequestNoParams(action);
}
Expand All @@ -21,7 +21,7 @@ public void userSendRequestNoParams(String action) throws ApiException {
* {@inheritDoc}
*/
@Override
@И("^(?:пользователь |он |)отправляет запрос \\((.*?)\\) с параметрами:?$")
@И("^(?:пользователь |он )?отправляет запрос \\(([^)]*)\\) с параметрами:?$")
public void userSendRequestTableParam(String action, DataTable dataTable) throws ApiException {
super.userSendRequestTableParam(action, dataTable);
}
Expand Down

0 comments on commit 3cbc372

Please sign in to comment.