Search in sources :

Example 1 with ContentPackage

use of org.olat.ims.cp.ContentPackage in project OpenOLAT by OpenOLAT.

the class CPManagerTest method testLoad.

@Test
public void testLoad() {
    ContentPackage relodedCP = mgr.load(cp.getRootDir(), cp.getResourcable());
    assertNotNull(relodedCP);
    CPOrganization orga = relodedCP.getFirstOrganizationInManifest();
    assertNotNull(orga);
    CPItem item = orga.getFirstItem();
    assertEquals(PAGE_TITLE, item.getTitle());
}
Also used : ContentPackage(org.olat.ims.cp.ContentPackage) CPOrganization(org.olat.ims.cp.objects.CPOrganization) CPItem(org.olat.ims.cp.objects.CPItem) Test(org.junit.Test)

Example 2 with ContentPackage

use of org.olat.ims.cp.ContentPackage in project openolat by klemens.

the class CPManagerTest method testLoad.

@Test
public void testLoad() {
    ContentPackage relodedCP = mgr.load(cp.getRootDir(), cp.getResourcable());
    assertNotNull(relodedCP);
    CPOrganization orga = relodedCP.getFirstOrganizationInManifest();
    assertNotNull(orga);
    CPItem item = orga.getFirstItem();
    assertEquals(PAGE_TITLE, item.getTitle());
}
Also used : ContentPackage(org.olat.ims.cp.ContentPackage) CPOrganization(org.olat.ims.cp.objects.CPOrganization) CPItem(org.olat.ims.cp.objects.CPItem) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 ContentPackage (org.olat.ims.cp.ContentPackage)2 CPItem (org.olat.ims.cp.objects.CPItem)2 CPOrganization (org.olat.ims.cp.objects.CPOrganization)2