fable.test
Class FilterTest

java.lang.Object
  extended by TestCase
      extended by fable.test.FilterTest

public class FilterTest
extends TestCase

This test checks the correctness of FilterStrategyFactory and the Filter class

Author:
Christopher Moh

Constructor Summary
FilterTest(java.lang.String s)
           
 
Method Summary
 void setUp()
          Sets up the test feed
static Test suite()
           
 void testAuthor()
          Tests if the Author filter (allow only certain author articles to be read) works
 void testCombined()
          This test checks if the combination of filters by FilterStrategyFactory works
 void testDate()
          This test checks if the date filter(s) produced by FilterStrategyFactory is correct
 void testReadUnread()
          Test if the filter correctly filters read and unread articles
 void testStarredUnstarred()
          Test if the filter correctly filters starred and unstarred articles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterTest

public FilterTest(java.lang.String s)
Method Detail

setUp

public void setUp()
Sets up the test feed


testReadUnread

public void testReadUnread()
Test if the filter correctly filters read and unread articles


testStarredUnstarred

public void testStarredUnstarred()
Test if the filter correctly filters starred and unstarred articles


testAuthor

public void testAuthor()
Tests if the Author filter (allow only certain author articles to be read) works


testDate

public void testDate()
This test checks if the date filter(s) produced by FilterStrategyFactory is correct


testCombined

public void testCombined()
This test checks if the combination of filters by FilterStrategyFactory works


suite

public static Test suite()