net.sourceforge.jtds.jdbc
Class ReadTextTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sourceforge.jtds.jdbc.TestBase
              extended bynet.sourceforge.jtds.jdbc.ReadTextTest
All Implemented Interfaces:
junit.framework.Test

public class ReadTextTest
extends TestBase

Test case to illustrate use of READTEXT for text and image columns.

Version:
1.0

Field Summary
 
Fields inherited from class net.sourceforge.jtds.jdbc.TestBase
con, props
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ReadTextTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void testReadText()
           
private  void validateReadTextResult(java.sql.ResultSet rs, java.lang.String data, byte[] byteBuf)
           
 
Methods inherited from class net.sourceforge.jtds.jdbc.TestBase
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadTextTest

public ReadTextTest(java.lang.String name)
Method Detail

testReadText

public void testReadText()
                  throws java.lang.Exception
Throws:
java.lang.Exception

validateReadTextResult

private void validateReadTextResult(java.sql.ResultSet rs,
                                    java.lang.String data,
                                    byte[] byteBuf)
                             throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)


Generated on October 27 2012