* Checks that a mailbox with the supplied name exists, and that its
* NoSelect flag matches that expected.
*/
private void assertMailbox( String name, boolean selectable ) throws MailboxException
{
ImapMailbox mailbox = imapHost.getMailbox( user, name );
assertNotNull( "Mailbox <" + name + "> expected to exist in store.",
mailbox );
if ( selectable )
{
assertTrue( "Mailbox <" + name + "> not selectable.",
mailbox.isSelectable() );
}
else
{
assertTrue( "Mailbox <" + name + "> should not be selectable.",
! mailbox.isSelectable() );
}
}