com.ricebridge.xmlman.test
Class ThreadTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ricebridge.xmlman.test.ThreadTest
All Implemented Interfaces:
junit.framework.Test

public class ThreadTest
extends junit.framework.TestCase

Test cases for XmlManager thread handling.

The Source Code of this Java class is available under a BSD-style license.


Nested Class Summary
static class ThreadTest.BackgroundStringListLoad
           
static class ThreadTest.BackgroundStringListSave
           
static class ThreadTest.NormalStringListLoad
           
static class ThreadTest.NormalStringListSave
           
static interface ThreadTest.Operation
           
 
Constructor Summary
ThreadTest(String pName)
           
 
Method Summary
static void checkLoadStringList(int pFileIndex, List pData)
           
static void checkSaveStringList(int pFileIndex, File pFile)
           
static void main(String[] pArgs)
           
static List makeStringListData(int pFileIndex)
           
static void makeThreadLoadFiles()
           
static String readFile(File pFile)
           
 void runTest(int pCycles, int pFiles, XmlManager pXmlManager, List pOperations)
           
static junit.framework.TestSuite suite()
           
 void testBackgroundSave()
           
static void writeFile(File pFile, String pContent)
           
 void xtestBackgroundLoad()
           
 void xtestNormalLoad()
           
 void xtestNormalSave()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, 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

ThreadTest

public ThreadTest(String pName)
Method Detail

suite

public static junit.framework.TestSuite suite()

main

public static void main(String[] pArgs)

makeThreadLoadFiles

public static void makeThreadLoadFiles()
                                throws Exception
Throws:
Exception

xtestNormalLoad

public void xtestNormalLoad()
                     throws Exception
Throws:
Exception

xtestBackgroundLoad

public void xtestBackgroundLoad()
                         throws Exception
Throws:
Exception

xtestNormalSave

public void xtestNormalSave()
                     throws Exception
Throws:
Exception

testBackgroundSave

public void testBackgroundSave()
                        throws Exception
Throws:
Exception

runTest

public void runTest(int pCycles,
                    int pFiles,
                    XmlManager pXmlManager,
                    List pOperations)
             throws Exception
Throws:
Exception

checkLoadStringList

public static void checkLoadStringList(int pFileIndex,
                                       List pData)

checkSaveStringList

public static void checkSaveStringList(int pFileIndex,
                                       File pFile)
                                throws Exception
Throws:
Exception

makeStringListData

public static List makeStringListData(int pFileIndex)

writeFile

public static void writeFile(File pFile,
                             String pContent)
                      throws Exception
Throws:
Exception

readFile

public static String readFile(File pFile)
                       throws Exception
Throws:
Exception


Copyright © 2004-2005 Ricebridge