use of org.eclipse.ecf.storage.IContainerEntry in project ecf by eclipse.
the class ContainerStoreTest method testAndRetrieveStoreContainerByIDAndCreateContainer.
public void testAndRetrieveStoreContainerByIDAndCreateContainer() throws Exception {
final ID containerID = testStoreContainer();
// Now retrieve from container store with given ID
final IContainerEntry containerEntry = containerStore.retrieve(containerID);
assertNotNull(containerEntry);
final IContainer containera = containerEntry.createContainer();
final ID containerIDa = containera.getID();
assertNotNull(containerIDa);
assertTrue(containerIDa.equals(containerID));
}
use of org.eclipse.ecf.storage.IContainerEntry in project ecf by eclipse.
the class ContainerStoreTest method testAndRetrieveStoreContainerByID.
public void testAndRetrieveStoreContainerByID() throws Exception {
final ID containerID = testStoreContainer();
// Now retrieve from container store with given ID
final IContainerEntry containerEntry = containerStore.retrieve(containerID);
assertNotNull(containerEntry);
final ID containerIDa = containerEntry.getContainerID();
assertNotNull(containerIDa);
assertTrue(containerIDa.equals(containerID));
}
use of org.eclipse.ecf.storage.IContainerEntry in project ecf by eclipse.
the class ContainerStoreTest method testStoreContainer.
public ID testStoreContainer() throws Exception {
final IContainer container = createContainer();
final IContainerEntry containerEntry = storeContainer(getStorableContainerAdapter(container));
final ISecurePreferences prefs = containerEntry.getPreferences();
assertNotNull(prefs);
return container.getID();
}
Aggregations