mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-08 15:43:16 +02:00
fix unit test
This commit is contained in:
@@ -25,23 +25,17 @@
|
||||
package sonia.scm.repository.api;
|
||||
|
||||
public enum MergeStrategy {
|
||||
MERGE_COMMIT("merge commit", true),
|
||||
FAST_FORWARD_IF_POSSIBLE("fast forward if possible", false),
|
||||
SQUASH("squash", true),
|
||||
REBASE("rebase", false);
|
||||
MERGE_COMMIT(true),
|
||||
FAST_FORWARD_IF_POSSIBLE(true),
|
||||
SQUASH(true),
|
||||
REBASE(false);
|
||||
|
||||
private final String name;
|
||||
private final boolean commitMessageAllowed;
|
||||
|
||||
MergeStrategy(String name, boolean commitMessageAllowed) {
|
||||
this.name = name;
|
||||
MergeStrategy(boolean commitMessageAllowed) {
|
||||
this.commitMessageAllowed = commitMessageAllowed;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public boolean isCommitMessageAllowed() {
|
||||
return commitMessageAllowed;
|
||||
}
|
||||
|
||||
@@ -132,6 +132,7 @@ class IndexDtoGeneratorTest {
|
||||
when(resourceLinks.repositoryTypeCollection()).thenReturn(new ResourceLinks.RepositoryTypeCollectionLinks(scmPathInfo));
|
||||
when(resourceLinks.repositoryRoleCollection()).thenReturn(new ResourceLinks.RepositoryRoleCollectionLinks(scmPathInfo));
|
||||
when(resourceLinks.namespaceStrategies()).thenReturn(new ResourceLinks.NamespaceStrategiesLinks(scmPathInfo));
|
||||
when(resourceLinks.namespaceCollection()).thenReturn(new ResourceLinks.NamespaceCollectionLinks(scmPathInfo));
|
||||
when(resourceLinks.me()).thenReturn(new ResourceLinks.MeLinks(scmPathInfo, new ResourceLinks.UserLinks(scmPathInfo)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user