@Test public void testRestoreControllerDataBundle() { masterDataBundleManager.restoreControllerDataBundle(activeSpaceController); assertEquals(ResourceRepositoryUploadChannel.DATA_BUNDLE_UPLOAD, testResults.uploadChannel); testResults.resourceListener.onUploadSuccess(TEST_UUID, new TestCopyableResource()); assertEquals(TEST_OUTPUT_CONTENTS, testResults.testOutputStream.toString()); assertEquals(TEST_RESOURCE, testResults.outputUri); assertEquals(TEST_RESOURCE, testResults.sourceUri); assertNull(testResults.destinationUri); }
@Override public void restoreControllerDataBundle(ActiveSpaceController controller) { String uuid = controller.getSpaceController().getUuid(); String sourceUri = resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid, DATA_BUNDLE_STATIC_VERSION); sendControllerDataBundleRestoreRequest(controller, sourceUri); }
StandardMasterDataBundleManager implements MasterDataBundleManager { @Override public void restoreControllerDataBundle(ActiveSpaceController controller) { String uuid = controller.getSpaceController().getUuid(); String sourceUri = resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid, DATA_BUNDLE_STATIC_VERSION); sendControllerDataBundleRestoreRequest(controller, sourceUri); } }
StandardMasterDataBundleManager implements MasterDataBundleManager { @Override public void restoreControllerDataBundle(ActiveSpaceController controller) { String uuid = controller.getSpaceController().getUuid(); String sourceUri = resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid, DATA_BUNDLE_STATIC_VERSION); sendControllerDataBundleRestoreRequest(controller, sourceUri); }  }
StandardMasterDataBundleManager implements MasterDataBundleManager { @Override public void restoreControllerDataBundle(ActiveSpaceController controller) { String uuid = controller.getSpaceController().getUuid(); String sourceUri = resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid, DATA_BUNDLE_STATIC_VERSION); sendControllerDataBundleRestoreRequest(controller, sourceUri); }  @Override void startup(); @Override void shutdown(); @Override void captureControllerDataBundle(ActiveSpaceController controller); @Override void restoreControllerDataBundle(ActiveSpaceController controller); void setRepositoryServer(ResourceRepositoryServer resourceRepositoryServer); void setLog(Log log); }
StandardMasterDataBundleManager implements MasterDataBundleManager { @Override public void restoreControllerDataBundle(ActiveSpaceController controller) { String uuid = controller.getSpaceController().getUuid(); String sourceUri = resourceRepositoryServer.getResourceUri(ResourceRepositoryStorageManager.RESOURCE_CATEGORY_DATA, uuid, DATA_BUNDLE_STATIC_VERSION); sendControllerDataBundleRestoreRequest(controller, sourceUri); }  @Override void startup(); @Override void shutdown(); @Override void captureControllerDataBundle(ActiveSpaceController controller); @Override void restoreControllerDataBundle(ActiveSpaceController controller); void setRepositoryServer(ResourceRepositoryServer resourceRepositoryServer); void setLog(Log log); static final Version DATA_BUNDLE_STATIC_VERSION; }