Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #195 from sbtqa/rest/hotfix/clear-fill-on-fly
Browse files Browse the repository at this point in the history
remove blank after sending
  • Loading branch information
kosteman authored Mar 20, 2019
2 parents f493c06 + a2e86b6 commit b8325e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public ApiStepsImpl() {
public T send() {
String endpoint = ApiEnvironment.getBlankStorage().getLast().getTitle();
EndpointManager.getEndpoint(endpoint).send();
ApiEnvironment.getBlankStorage().removeLast();
return (T) this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ public EndpointBlank getLast() {
throw new RestPluginException("The blank repository is empty");
}
}

public void removeLast() {
if (!blanks.isEmpty()) {
blanks.remove(blanks.size() - 1);
} else {
throw new RestPluginException("The blank repository is empty");
}
}
}

0 comments on commit b8325e5

Please sign in to comment.