mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Naming
This commit is contained in:
@@ -73,7 +73,7 @@ public class GitMergeCommand extends AbstractGitCommand implements MergeCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
private MergeCommandResult merge() throws IOException {
|
private MergeCommandResult merge() throws IOException {
|
||||||
createClone();
|
checkOutTargetBranch();
|
||||||
MergeResult result = doMergeInClone();
|
MergeResult result = doMergeInClone();
|
||||||
if (result.getMergeStatus().isSuccessful()) {
|
if (result.getMergeStatus().isSuccessful()) {
|
||||||
doCommit();
|
doCommit();
|
||||||
@@ -84,7 +84,7 @@ public class GitMergeCommand extends AbstractGitCommand implements MergeCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createClone() {
|
private void checkOutTargetBranch() {
|
||||||
try {
|
try {
|
||||||
clone.checkout().setName(target).call();
|
clone.checkout().setName(target).call();
|
||||||
} catch (GitAPIException e) {
|
} catch (GitAPIException e) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import static org.mockito.Mockito.verify;
|
|||||||
public class CloseableWrapperTest {
|
public class CloseableWrapperTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void x() {
|
public void shouldExecuteGivenMethodAtClose() {
|
||||||
Consumer<String> wrapped = new Consumer<String>() {
|
Consumer<String> wrapped = new Consumer<String>() {
|
||||||
// no this cannot be replaced with a lambda because otherwise we could not use Mockito#spy
|
// no this cannot be replaced with a lambda because otherwise we could not use Mockito#spy
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user