org.apache.james.mailboxmanager.torque
Class SearchUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.mailboxmanager.torque.SearchUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class SearchUtilsTest
extends junit.framework.TestCase


Constructor Summary
SearchUtilsTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testMatchHeaderContains()
           
 void testMatchHeaderContainsCaps()
           
 void testMatchHeaderContainsLowers()
           
 void testMatchHeaderDateAfter()
           
 void testMatchHeaderDateBefore()
           
 void testMatchHeaderDateOn()
           
 void testMatchHeaderExists()
           
 void testMatchInternalDateAfter()
           
 void testMatchInternalDateBefore()
           
 void testMatchInternalDateEquals()
           
 void testMatchSizeEquals()
           
 void testMatchSizeLessThan()
           
 void testMatchSizeMoreThan()
           
 void testShouldMatchAll()
           
 void testShouldMatchAnd()
           
 void testShouldMatchAnsweredFlagSet()
           
 void testShouldMatchAnsweredFlagUnSet()
           
 void testShouldMatchCapsHeaderContains()
           
 void testShouldMatchCapsHeaderDateAfter()
           
 void testShouldMatchCapsHeaderDateBefore()
           
 void testShouldMatchCapsHeaderDateOn()
           
 void testShouldMatchDeletedFlagSet()
           
 void testShouldMatchDeletedFlagUnSet()
           
 void testShouldMatchDraftFlagSet()
           
 void testShouldMatchDraftFlagUnSet()
           
 void testShouldMatchFlaggedFlagSet()
           
 void testShouldMatchFlaggedFlagUnSet()
           
 void testShouldMatchLowerHeaderContains()
           
 void testShouldMatchLowersHeaderDateAfter()
           
 void testShouldMatchLowersHeaderDateBefore()
           
 void testShouldMatchLowersHeaderDateOn()
           
 void testShouldMatchLowersHeaderExists()
           
 void testShouldMatchNot()
           
 void testShouldMatchOr()
           
 void testShouldMatchSeenFlagSet()
           
 void testShouldMatchSeenFlagUnSet()
           
 void testShouldMatchSeenRecentSet()
           
 void testShouldMatchSeenRecentUnSet()
           
 void testShouldMatchUidRange()
           
 void testShouldMatchUppersHeaderExists()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchUtilsTest

public SearchUtilsTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testMatchSizeLessThan

public void testMatchSizeLessThan()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testMatchSizeMoreThan

public void testMatchSizeMoreThan()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testMatchSizeEquals

public void testMatchSizeEquals()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testMatchInternalDateEquals

public void testMatchInternalDateEquals()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMatchInternalDateBefore

public void testMatchInternalDateBefore()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMatchInternalDateAfter

public void testMatchInternalDateAfter()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderDateAfter

public void testMatchHeaderDateAfter()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchCapsHeaderDateAfter

public void testShouldMatchCapsHeaderDateAfter()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchLowersHeaderDateAfter

public void testShouldMatchLowersHeaderDateAfter()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderDateOn

public void testMatchHeaderDateOn()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchCapsHeaderDateOn

public void testShouldMatchCapsHeaderDateOn()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchLowersHeaderDateOn

public void testShouldMatchLowersHeaderDateOn()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderDateBefore

public void testMatchHeaderDateBefore()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchCapsHeaderDateBefore

public void testShouldMatchCapsHeaderDateBefore()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchLowersHeaderDateBefore

public void testShouldMatchLowersHeaderDateBefore()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderContainsCaps

public void testMatchHeaderContainsCaps()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderContainsLowers

public void testMatchHeaderContainsLowers()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderContains

public void testMatchHeaderContains()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchLowerHeaderContains

public void testShouldMatchLowerHeaderContains()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchCapsHeaderContains

public void testShouldMatchCapsHeaderContains()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testMatchHeaderExists

public void testMatchHeaderExists()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchLowersHeaderExists

public void testShouldMatchLowersHeaderExists()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchUppersHeaderExists

public void testShouldMatchUppersHeaderExists()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchUidRange

public void testShouldMatchUidRange()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchSeenFlagSet

public void testShouldMatchSeenFlagSet()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchAnsweredFlagSet

public void testShouldMatchAnsweredFlagSet()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchFlaggedFlagSet

public void testShouldMatchFlaggedFlagSet()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchDraftFlagSet

public void testShouldMatchDraftFlagSet()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchDeletedFlagSet

public void testShouldMatchDeletedFlagSet()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchSeenRecentSet

public void testShouldMatchSeenRecentSet()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchSeenFlagUnSet

public void testShouldMatchSeenFlagUnSet()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchAnsweredFlagUnSet

public void testShouldMatchAnsweredFlagUnSet()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchFlaggedFlagUnSet

public void testShouldMatchFlaggedFlagUnSet()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchDraftFlagUnSet

public void testShouldMatchDraftFlagUnSet()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchDeletedFlagUnSet

public void testShouldMatchDeletedFlagUnSet()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchSeenRecentUnSet

public void testShouldMatchSeenRecentUnSet()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchAll

public void testShouldMatchAll()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchNot

public void testShouldMatchNot()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchOr

public void testShouldMatchOr()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testShouldMatchAnd

public void testShouldMatchAnd()
                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.