@BeforeMethod public void setUp() throws Throwable { createConfig(); host = new PhotonControllerXenonHost( config.getXenonConfig(), hostClientFactory, agentControlClientFactory, null, null, null); cloudStoreServiceGroup = new CloudStoreServiceGroup(false); host.registerCloudStore(cloudStoreServiceGroup); }
@Test public void testStoragePathDoesNotExist() throws Throwable { File storageDir = new File(config.getXenonConfig().getStoragePath()); cleanupStorage(); assertThat(storageDir.exists(), is(false)); host = new PhotonControllerXenonHost( config.getXenonConfig(), hostClientFactory, agentControlClientFactory, null, null, null); cloudStoreServiceGroup = new CloudStoreServiceGroup(false); host.registerCloudStore(cloudStoreServiceGroup); assertThat(storageDir.exists(), is(true)); assertThat(host, is(notNullValue())); }