mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
return null if commit was not merged into requested branch
This commit is contained in:
@@ -212,8 +212,8 @@ public final class MockUtil
|
||||
{
|
||||
SCMContextProvider provider = mock(SCMContextProvider.class);
|
||||
|
||||
when(provider.getBaseDirectory()).thenReturn(directory);
|
||||
when(provider.resolve(any(Path.class))).then(ic -> {
|
||||
lenient().when(provider.getBaseDirectory()).thenReturn(directory);
|
||||
lenient().when(provider.resolve(any(Path.class))).then(ic -> {
|
||||
Path p = ic.getArgument(0);
|
||||
return directory.toPath().resolve(p);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user