|
@@ -61,10 +61,10 @@ public class TestFileSystemApplicationHistoryStore extends
|
|
@Before
|
|
@Before
|
|
public void setup() throws Exception {
|
|
public void setup() throws Exception {
|
|
fs = new RawLocalFileSystem();
|
|
fs = new RawLocalFileSystem();
|
|
- initStore(fs);
|
|
|
|
|
|
+ initAndStartStore(fs);
|
|
}
|
|
}
|
|
|
|
|
|
- private void initStore(final FileSystem fs) throws IOException,
|
|
|
|
|
|
+ private void initAndStartStore(final FileSystem fs) throws IOException,
|
|
URISyntaxException {
|
|
URISyntaxException {
|
|
Configuration conf = new Configuration();
|
|
Configuration conf = new Configuration();
|
|
fs.initialize(new URI("/"), conf);
|
|
fs.initialize(new URI("/"), conf);
|
|
@@ -272,7 +272,7 @@ public class TestFileSystemApplicationHistoryStore extends
|
|
doReturn(true).when(fs).isDirectory(any(Path.class));
|
|
doReturn(true).when(fs).isDirectory(any(Path.class));
|
|
|
|
|
|
try {
|
|
try {
|
|
- initStore(fs);
|
|
|
|
|
|
+ initAndStartStore(fs);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
Assert.fail("Exception should not be thrown: " + e);
|
|
Assert.fail("Exception should not be thrown: " + e);
|
|
}
|
|
}
|
|
@@ -293,7 +293,7 @@ public class TestFileSystemApplicationHistoryStore extends
|
|
doThrow(new IOException()).when(fs).mkdirs(any(Path.class));
|
|
doThrow(new IOException()).when(fs).mkdirs(any(Path.class));
|
|
|
|
|
|
try {
|
|
try {
|
|
- initStore(fs);
|
|
|
|
|
|
+ initAndStartStore(fs);
|
|
Assert.fail("Exception should have been thrown");
|
|
Assert.fail("Exception should have been thrown");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
// Expected failure
|
|
// Expected failure
|