1 19 20 package org.apache.james.mailboxmanager.torque; 21 22 import org.apache.james.mailboxmanager.manager.MailboxManager; 23 import org.apache.james.mailboxmanager.mock.MockUser; 24 import org.apache.james.mailboxmanager.mock.TorqueMailboxManagerProviderSingleton; 25 import org.apache.james.mailboxmanager.torque.om.MailboxRowPeer; 26 import org.apache.torque.TorqueException; 27 import org.apache.torque.util.Criteria; 28 29 public abstract class AbstractMailboxRowTestCase extends AbstractTorqueTestCase { 30 31 MailboxManager mm; 32 33 public AbstractMailboxRowTestCase() throws TorqueException { 34 super(); 35 } 36 public void setUp() throws Exception { 37 super.setUp(); 38 assertEquals(0,MailboxRowPeer.doSelect(new Criteria()).size()); 39 mm=TorqueMailboxManagerProviderSingleton.getTorqueMailboxManagerProviderInstance().getMailboxManagerInstance(new MockUser()); 40 } 41 public void tearDown() { 42 43 } 44 45 } 46 | Popular Tags |