Search in sources :

Example 1 with IContainerEntry

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));
}
Also used : ID(org.eclipse.ecf.core.identity.ID) IContainer(org.eclipse.ecf.core.IContainer) IContainerEntry(org.eclipse.ecf.storage.IContainerEntry)

Example 2 with IContainerEntry

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));
}
Also used : ID(org.eclipse.ecf.core.identity.ID) IContainerEntry(org.eclipse.ecf.storage.IContainerEntry)

Example 3 with IContainerEntry

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();
}
Also used : ISecurePreferences(org.eclipse.equinox.security.storage.ISecurePreferences) IContainer(org.eclipse.ecf.core.IContainer) IContainerEntry(org.eclipse.ecf.storage.IContainerEntry)

Aggregations

IContainerEntry (org.eclipse.ecf.storage.IContainerEntry)3 IContainer (org.eclipse.ecf.core.IContainer)2 ID (org.eclipse.ecf.core.identity.ID)2 ISecurePreferences (org.eclipse.equinox.security.storage.ISecurePreferences)1