|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ricebridge.csvman.test.CsvManagerTest
Test cases for CsvManager.
The Source Code of this Java class is available under a BSD-style license.
| Nested Class Summary | |
static class |
CsvManagerTest.TestFieldListener
Text FieldListener |
| Constructor Summary | |
CsvManagerTest(String pName)
|
|
| Method Summary | |
static void |
main(String[] pArgs)
|
static LineProvider |
makeTestLineProvider()
An example of a very simple LineProvider. |
static junit.framework.TestSuite |
suite()
|
void |
testBadLines()
|
void |
testEmptyLines()
|
void |
testEscapeMap()
|
void |
testFieldListener()
|
void |
testLineProvider()
|
void |
testLoadSave()
|
void |
testNoData()
|
void |
testQuotes()
|
void |
testSeparator()
|
void |
testStartEndLineLoad()
|
void |
testStartEndLineSave()
|
void |
testTrim()
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CsvManagerTest(String pName)
| Method Detail |
public static junit.framework.TestSuite suite()
public static void main(String[] pArgs)
public static LineProvider makeTestLineProvider()
LineProvider.
Note that the LineProvider.hasNextLine() method is called before
the LineProvider.nextLine() method. This means that you should be take care
initialise any array index variables to -1, so that they will be 0 after the first call to
nextLine. This also means that the test in hasNextLine should be
against the next (+1), not the current, value of the row index.
See the Source Code of this method for the full example.
public void testLineProvider()
throws Exception
Exception
public void testSeparator()
throws Exception
Exception
public void testQuotes()
throws Exception
Exception
public void testTrim()
throws Exception
Exception
public void testBadLines()
throws Exception
Exception
public void testEmptyLines()
throws Exception
Exception
public void testStartEndLineLoad()
throws Exception
Exception
public void testStartEndLineSave()
throws Exception
Exception
public void testEscapeMap()
throws Exception
Exception
public void testLoadSave()
throws Exception
Exception
public void testFieldListener()
throws Exception
Exceptionpublic void testNoData()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||