use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.
the class TestContentDAO method insertOnLineContent.
private void insertOnLineContent(Content mockContent) throws ApsSystemException {
this._contentDao.insertOnLineContent(mockContent);
ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
assertTrue(contentRecord.isOnLine());
}
use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.
the class TestContentDAO method addContent.
private void addContent(Content mockContent) throws ApsSystemException {
_contentDao.addEntity(mockContent);
ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
assertEquals(mockContent.getDescription(), contentRecord.getDescr());
assertEquals(mockContent.getStatus(), contentRecord.getStatus());
assertFalse(contentRecord.isOnLine());
}
use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.
the class TestContentDAO method updateContent.
private void updateContent(Content mockContent) throws ApsSystemException {
this._contentDao.updateEntity(mockContent);
ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
assertEquals(mockContent.getDescription(), contentRecord.getDescription());
assertEquals(mockContent.getStatus(), contentRecord.getStatus());
assertFalse(contentRecord.isOnLine());
}
use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.
the class TestContentDAO method removeOnLineContent.
private void removeOnLineContent(Content content) throws ApsSystemException {
this._contentDao.removeOnLineContent(content);
ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(content.getId());
assertFalse(contentRecord.isOnLine());
}
use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.
the class TestContentEntityManager method verifyOrder.
private void verifyOrder(List<ApsEntityRecord> contents, String[] order) {
for (int i = 0; i < contents.size(); i++) {
ContentRecordVO vo = (ContentRecordVO) contents.get(i);
assertEquals(order[i], vo.getId());
}
}
Aggregations