org.apache.struts.apps.mailreader.dao
Class BaseTestUserDatabase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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
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 |
userDatabase
protected UserDatabase userDatabase
BaseTestUserDatabase
public BaseTestUserDatabase()
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 UserDatabase getNewUserDatabase()
getNewUser
protected abstract User getNewUser(UserDatabase db,
String userName)
getNewSubscription
protected abstract Subscription getNewSubscription(User user,
String host)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.