mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Debug test failure
This commit is contained in:
@@ -86,6 +86,14 @@ public class RepositoryHookEvent
|
||||
return type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RepositoryHookEvent{" +
|
||||
"repository=" + repository +
|
||||
", type=" + type +
|
||||
'}';
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** context of current hook */
|
||||
|
||||
@@ -44,6 +44,7 @@ import java.nio.file.Files;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.ArgumentMatchers.argThat;
|
||||
import static org.mockito.Mockito.description;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
public class GitModifyCommandTest extends GitModifyCommandTestBase {
|
||||
@@ -344,7 +345,9 @@ public class GitModifyCommandTest extends GitModifyCommandTestBase {
|
||||
|
||||
command.execute(request);
|
||||
|
||||
verify(transportProtocolRule.repositoryManager).fireHookEvent(argThat(argument -> argument.getType() == RepositoryHookType.PRE_RECEIVE));
|
||||
verify(transportProtocolRule.repositoryManager).fireHookEvent(argThat(argument -> argument.getType() == RepositoryHookType.POST_RECEIVE));
|
||||
verify(transportProtocolRule.repositoryManager, description("pre receive hook event expected"))
|
||||
.fireHookEvent(argThat(argument -> argument.getType() == RepositoryHookType.PRE_RECEIVE));
|
||||
verify(transportProtocolRule.repositoryManager, description("post receive hook event expected"))
|
||||
.fireHookEvent(argThat(argument -> argument.getType() == RepositoryHookType.POST_RECEIVE));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user