public class BookTest
extends junit.framework.TestCase
Constructor and Description |
---|
BookTest(java.lang.String testName)
Test Book related operations
|
Modifier and Type | Method and Description |
---|---|
private void |
constructorTest()
Test the functionality for all different types of constructor
|
private void |
rentTest()
Test the rent(int[]) function functionality
|
private void |
returnTest()
Test the returned() function functionality
|
private void |
setTitlesTest()
Test the setTitles(String) functionality
|
void |
setUp()
Set up before testing
|
static junit.framework.Test |
suite() |
void |
testApp()
Run all tests
|
private void |
valueTest()
Test if the values are accurate
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
public BookTest(java.lang.String testName)
testName
- name of the test caseprivate void constructorTest()
private void rentTest()
private void returnTest()
private void setTitlesTest()
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
- Exceptionpublic static junit.framework.Test suite()
public void testApp()
private void valueTest()