public class HandlerTest
extends junit.framework.TestCase
Constructor and Description |
---|
HandlerTest(java.lang.String testName)
Test Handler related operations
|
Modifier and Type | Method and Description |
---|---|
private void |
bookIdsToTitlesStringTest()
Test the bookIdsToTitlesString function
|
private void |
borrowBookTest()
Test the borrowBook function
|
private void |
calDueDateTest()
Test the calDueDate function
|
private void |
returnBookTest()
Test the returnBook function
|
void |
setUp()
Set up before testing
|
static junit.framework.Test |
suite() |
void |
tearDown()
Delete files after testing
|
void |
testApp()
Run all tests
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
private Handler handler
public HandlerTest(java.lang.String testName)
testName
- name of the test caseprivate void bookIdsToTitlesStringTest()
private void borrowBookTest()
private void calDueDateTest()
private void returnBookTest()
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- Exceptionpublic static junit.framework.Test suite()
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
- Exceptionpublic void testApp()