java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.mockobjects.util.TestCaseMo
com.mockobjects.examples.mailinglist.TestMailingList
- All Implemented Interfaces:
- junit.framework.Test
- public class TestMailingList
- extends com.mockobjects.util.TestCaseMo
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
COLUMN_NAMES
public static final java.lang.String[] COLUMN_NAMES
EMAIL
public static final java.lang.String EMAIL
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
ONE_ROW
public static final java.lang.String[] ONE_ROW
TWO_ROWS
public static final java.lang.String[][] TWO_ROWS
list
private MailingList list
mockListAction
private MockListAction mockListAction
mockConnection
private com.mockobjects.sql.MockConnection mockConnection
mockPreparedStatement
private com.mockobjects.sql.MockPreparedStatement mockPreparedStatement
mockStatement
private com.mockobjects.sql.MockStatement mockStatement
TestMailingList
public TestMailingList(java.lang.String name)
setUp
public void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
testAddNewMember
public void testAddNewMember()
throws MailingListException,
java.sql.SQLException
testAddExistingMember
public void testAddExistingMember()
throws java.sql.SQLException
testPrepareStatementFailsForAdd
public void testPrepareStatementFailsForAdd()
throws MailingListException
testRemoveMember
public void testRemoveMember()
throws MailingListException,
java.sql.SQLException
testRemoveMissingMember
public void testRemoveMissingMember()
throws java.sql.SQLException
testListNoMembers
public void testListNoMembers()
throws MailingListException,
java.sql.SQLException
testListOneMember
public void testListOneMember()
throws MailingListException,
java.sql.SQLException
testListTwoMembers
public void testListTwoMembers()
throws MailingListException,
java.sql.SQLException
testListmembersFailure
public void testListmembersFailure()
throws java.sql.SQLException
testListResultSetFailure
public void testListResultSetFailure()
throws MailingListException
testListStatementFailure
public void testListStatementFailure()
throws MailingListException
testListConnectionFailure
public void testListConnectionFailure()
throws MailingListException
makeMultiRowResultSet
private com.mockobjects.sql.MockMultiRowResultSet makeMultiRowResultSet()
setExpectationsForListMembers
private void setExpectationsForListMembers()
setExpectationsForAddMember
private void setExpectationsForAddMember()
setExpectationsForRemoveMember
private void setExpectationsForRemoveMember()
setExpectationsForPreparedStatement
private void setExpectationsForPreparedStatement(java.lang.String sqlStatement)
verifyJDBC
private void verifyJDBC()