Skip to content
Snippets Groups Projects
Commit 20e5b8f4 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6523 [test] rename method

parent cd478c06
No related branches found
No related tags found
No related merge requests found
......@@ -614,7 +614,7 @@ class CommandRepositoryITCase {
void shouldSetCanceled() {
var command = mongoOperations.save(CommandTestFactory.createBuilder().id(null).status(CommandStatus.NEW).build());
setRevokeStatusWithResource(command.getId());
setRevokeStatus(command.getId());
var result = repository.findById(command.getId());
assertThat(result).isPresent().get().satisfies(cmd -> {
......@@ -627,7 +627,7 @@ class CommandRepositoryITCase {
void shouldSetRevokePendingWhenPending() {
var command = mongoOperations.save(CommandTestFactory.createBuilder().id(null).build());
setRevokeStatusWithResource(command.getId());
setRevokeStatus(command.getId());
var result = repository.findById(command.getId());
assertThat(result).isPresent().get().satisfies(cmd -> {
......@@ -640,7 +640,7 @@ class CommandRepositoryITCase {
void shouldSetRevokePendingWhenFinished() {
var command = mongoOperations.save(CommandTestFactory.createBuilder().id(null).status(CommandStatus.FINISHED).build());
setRevokeStatusWithResource(command.getId());
setRevokeStatus(command.getId());
var result = repository.findById(command.getId());
assertThat(result).isPresent().get().satisfies(cmd -> {
......@@ -655,7 +655,7 @@ class CommandRepositoryITCase {
void shouldNotUpdate(CommandStatus status) {
var command = mongoOperations.save(CommandTestFactory.createBuilder().id(null).status(status).build());
setRevokeStatusWithResource(command.getId());
setRevokeStatus(command.getId());
var result = repository.findById(command.getId());
assertThat(result).isPresent().get().satisfies(cmd -> {
......@@ -664,7 +664,7 @@ class CommandRepositoryITCase {
});
}
private void setRevokeStatusWithResource(String commandId) {
private void setRevokeStatus(String commandId) {
repository.setRevokeStatus(commandId, CommandTestFactory.CREATED_RESOURCE);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment