* common mail repository tests on the MBox implementation.
*/
public class MBoxMailRepositoryTest {
protected MailRepository getMailRepository() throws Exception {
MBoxMailRepository mr = new MBoxMailRepository();
DefaultConfigurationBuilder defaultConfiguration = new DefaultConfigurationBuilder();
File fInbox = new MockFileSystem().getFile("file://conf/org/apache/james/mailrepository/testdata/Inbox");
String mboxPath = "mbox://" + fInbox.toURI().toString().substring(new File("").toURI().toString().length());
defaultConfiguration.addProperty("[@destinationURL]", mboxPath);
defaultConfiguration.addProperty("[@type]", "MAIL");
mr.setLog(LoggerFactory.getLogger("MockLog"));
mr.configure(defaultConfiguration);
return mr;
}