Search in sources :

Example 1 with AttachmentDao

use of org.mamute.dao.AttachmentDao in project mamute by caelum.

the class AttachmentRepositoryTest method setup.

@Before
public void setup() {
    attachments = new AttachmentDao(session);
    fileStorage = new AttachmentsFileStorage(attachmentRootFolder.getRoot().getAbsolutePath());
    questions = new QuestionDAO(session, Mockito.mock(InvisibleForUsersRule.class));
    answers = new AnswerDAO(session, Mockito.mock(InvisibleForUsersRule.class));
    this.attachmentRepository = new AttachmentRepository(attachments, fileStorage, questions, answers);
}
Also used : AttachmentDao(org.mamute.dao.AttachmentDao) AnswerDAO(org.mamute.dao.AnswerDAO) QuestionDAO(org.mamute.dao.QuestionDAO) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 AnswerDAO (org.mamute.dao.AnswerDAO)1 AttachmentDao (org.mamute.dao.AttachmentDao)1 QuestionDAO (org.mamute.dao.QuestionDAO)1