|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.sqlunit.test.SortingTest
public class SortingTest
Some basic sorting tests to verify that the code works before I start on mock database based unit testing.
| Constructor Summary | |
|---|---|
SortingTest(java.lang.String name)
Boilerplate constructor. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] argv)
Boilerplate main method. |
void |
setUp()
Setting up the mapper to contain type info before each test. |
static junit.framework.Test |
suite()
Boilerplate suite() method. |
void |
testSortByAuthorCharacterDesc()
Testing the descending sort. |
void |
testSortByIdAndAuthorName()
Sorting with two columns. |
void |
testSortByVice()
Sorting with single column. |
void |
testSortByViceAuthorCharacter()
Sorting with three columns. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SortingTest(java.lang.String name)
name - the name of this test class.| Method Detail |
|---|
public static void main(java.lang.String[] argv)
argv - the arguments (none).public static junit.framework.Test suite()
public final void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception - if there was a problem.
public final void testSortByVice()
throws java.lang.Exception
java.lang.Exception - if there was a problem.
public final void testSortByIdAndAuthorName()
throws java.lang.Exception
java.lang.Exception - if there was a problem.
public final void testSortByViceAuthorCharacter()
throws java.lang.Exception
java.lang.Exception - if there was a problem.
public final void testSortByAuthorCharacterDesc()
throws java.lang.Exception
java.lang.Exception - if there was a problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||