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);
}
Aggregations