Fix mocking here

Original commit: elastic/x-pack-elasticsearch@39903ee7b5
This commit is contained in:
Robert Muir 2015-08-03 13:46:28 -04:00
parent 875e2e67c5
commit aca4133fbd
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ public class SystemKeyToolTests extends CliToolTestCase {
public void init() throws Exception {
terminal = mock(Terminal.class);
env = mock(Environment.class);
when(env.binFile().getParent()).thenReturn(createTempDir());
Path tmpDir = createTempDir();
when(env.binFile()).thenReturn(tmpDir.resolve("bin"));
}
@Test