org.apache.struts.apps.mailreader.dao
Class BaseTestUserDatabase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.struts.apps.mailreader.dao.BaseTestUserDatabase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
MemoryUserDatabaseTest

public abstract class BaseTestUserDatabase
extends junit.framework.TestCase

TODO Complete use case tests for: - [01 ] findUser(existing) [done] - [02 ] findUser(bogus) [done] - [03 ] findUsers() [done] - [04 ] createUser1, find(new one 1) [done] - [04a] createUser1, find(new one 1) find subscr [done] - [05 ] createUser2, find(existing) [done] - [05a] createUser2, find(existing) find subscr [done] - [06 ] createUser3, findUsers(all) [done] - [06a] createUser4 (duplicate) [done] - [07 ] findUsers(all) [done] - [08 ] create, save, close, open find(new one) [done] - [09 ] create, save, close, open findUsers(all) [done] - [10 ] find(bogus) [done] - [11 ] create, remove, find(valid), find(invalid) [done] Registrations


Field Summary
protected  org.apache.struts.apps.mailreader.dao.UserDatabase userDatabase
           
 
Constructor Summary
BaseTestUserDatabase()
           
 
Method Summary
protected abstract  org.apache.struts.apps.mailreader.dao.Subscription getNewSubscription(org.apache.struts.apps.mailreader.dao.User user, String host)
           
protected abstract  org.apache.struts.apps.mailreader.dao.User getNewUser(org.apache.struts.apps.mailreader.dao.UserDatabase db, String userName)
           
protected abstract  org.apache.struts.apps.mailreader.dao.UserDatabase getNewUserDatabase()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testCase01()
           
 void testCase010()
           
 void testCase011()
           
 void testCase02()
           
 void testCase03()
           
 void testCase04()
           
 void testCase04a()
           
 void testCase05()
           
 void testCase05a()
           
 void testCase06()
           
 void testCase07()
           
 void testCase08()
           
 void testCase09()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userDatabase

protected org.apache.struts.apps.mailreader.dao.UserDatabase userDatabase
Constructor Detail

BaseTestUserDatabase

public BaseTestUserDatabase()
Method Detail

setUp

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

tearDown

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

testCase01

public void testCase01()
                throws Exception
Throws:
Exception

testCase02

public void testCase02()
                throws Exception
Throws:
Exception

testCase03

public void testCase03()
                throws Exception
Throws:
Exception

testCase04

public void testCase04()
                throws Exception
Throws:
Exception

testCase04a

public void testCase04a()
                 throws Exception
Throws:
Exception

testCase05

public void testCase05()
                throws Exception
Throws:
Exception

testCase05a

public void testCase05a()
                 throws Exception
Throws:
Exception

testCase06

public void testCase06()
                throws Exception
Throws:
Exception

testCase07

public void testCase07()
                throws Exception
Throws:
Exception

testCase08

public void testCase08()
                throws Exception
Throws:
Exception

testCase09

public void testCase09()
                throws Exception
Throws:
Exception

testCase010

public void testCase010()
                 throws Exception
Throws:
Exception

testCase011

public void testCase011()
                 throws Exception
Throws:
Exception

getNewUserDatabase

protected abstract org.apache.struts.apps.mailreader.dao.UserDatabase getNewUserDatabase()

getNewUser

protected abstract org.apache.struts.apps.mailreader.dao.User getNewUser(org.apache.struts.apps.mailreader.dao.UserDatabase db,
                                                                         String userName)

getNewSubscription

protected abstract org.apache.struts.apps.mailreader.dao.Subscription getNewSubscription(org.apache.struts.apps.mailreader.dao.User user,
                                                                                         String host)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.