* Test creation of a repository entry.
*/
public void testRawRepositoryEntryCreate() {
try {
DB db = DBFactory.getInstance();
OLATResourceManager rm = OLATResourceManager.getInstance();
// create course and persist as OLATResourceImpl
OLATResourceable resourceable = new OLATResourceable() {
public String getResourceableTypeName() { return "Course";}
public Long getResourceableId() {return new Long(456);}
};
OLATResource r = rm.createOLATResourceInstance(resourceable);
db.saveObject(r);
// now make a repository entry for this course
RepositoryEntry d = new RepositoryEntry();
d.setOlatResource(r);