public class LOBTest extends TestBase
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LOBTest.RealInputStream
Implements an
InputStream that only returns a limited
number of bytes on read (less than the requested number of bytes). |
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
blobData |
private static java.lang.String |
clobData |
private static int |
LOB_LENGTH |
private static byte[] |
newBlobData |
private static java.lang.String |
newClobData |
| Constructor and Description |
|---|
LOBTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
compare(byte[] b1,
byte[] b2)
Compares long byte arrays.
|
boolean |
compare(java.lang.String s1,
java.lang.String s2)
Compare long
Strings. |
private byte[] |
getBlobTestData() |
private java.lang.String |
getClobTestData() |
private byte[] |
getNewBlobTestData() |
private java.lang.String |
getNewClobTestData() |
static void |
main(java.lang.String[] args) |
void |
testBlobEmpty()
Test for bug [1062395] Empty (but not null) blobs should return byte[0].
|
void |
testBlobGet1() |
void |
testBlobGet2() |
void |
testBlobGetBytes1()
Test for bug [989399] blob.getBytes() from 0.
|
void |
testBlobGetBytes2() |
void |
testBlobGetBytes3() |
void |
testBlobLength1() |
void |
testBlobMethods()
Test for bug [1172405] BLOB/CLOB position methods fail.
|
void |
testBlobSet1() |
void |
testBlobSet2() |
void |
testBlobSet3() |
void |
testBlobSet4() |
void |
testBlobSet5() |
void |
testBlobSet6() |
void |
testBlobSet7() |
void |
testBlobSet8()
Test inserting from an
InputStream that doesn't fill the
buffer on read(). |
void |
testBlobSetNull1() |
void |
testBlobSetNull10() |
void |
testBlobSetNull11() |
void |
testBlobSetNull2() |
void |
testBlobSetNull3() |
void |
testBlobSetNull4()
Test for bug [985956] Cannot setObject(null) on image.
|
void |
testBlobSetNull5() |
void |
testBlobSetNull6() |
void |
testBlobSetNull7() |
void |
testBlobSetNull8() |
void |
testBlobSetNull9() |
void |
testBlobTruncate1() |
void |
testBlobUpdate1() |
void |
testBlobUpdate2() |
void |
testBlobUpdate3() |
void |
testBlobUpdate4() |
void |
testBlobUpdate5()
Test Long blob manipulation including updates to the middle of the
Blob. |
void |
testBug508()
Test for bug #508, jTDS doesn't throw an exception when a connection
is reset due to an error caused by insufficient server memory.
|
void |
testClobCaching() |
void |
testClobEmpty()
Test for bug [1062395] Empty (but not null) blobs should return byte[0].
|
void |
testClobGet1()
CLOB TESTS **
|
void |
testClobGet2() |
void |
testClobGetSubString1() |
void |
testClobGetSubString2() |
void |
testClobGetSubString3() |
void |
testClobLength1() |
void |
testClobMethods()
Test for bug [1172405] BLOB/CLOB position methods fail.
|
void |
testClobSet1() |
void |
testClobSet2() |
void |
testClobSet3() |
void |
testClobSet4() |
void |
testClobSet5() |
void |
testClobSet6() |
void |
testClobSet7() |
void |
testClobSet8() |
void |
testClobSetNull1() |
void |
testClobSetNull10() |
void |
testClobSetNull11() |
void |
testClobSetNull12() |
void |
testClobSetNull13() |
void |
testClobSetNull14() |
void |
testClobSetNull2() |
void |
testClobSetNull3() |
void |
testClobSetNull4() |
void |
testClobSetNull5() |
void |
testClobSetNull6() |
void |
testClobSetNull7() |
void |
testClobSetNull8() |
void |
testClobSetNull9() |
void |
testClobTruncate1() |
void |
testClobUpdate1() |
void |
testClobUpdate2() |
void |
testClobUpdate3() |
void |
testClobUpdate4() |
void |
testClobUpdate5() |
void |
testClobUpdate6()
Test long
Clob manipulation including indexed writes. |
void |
testZeroLengthStreams()
Test for incorrect handling of zero length streams (bug [1096086] Zero
length streams generate null values).
|
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDownprivate static final int LOB_LENGTH
private static final byte[] blobData
private static final byte[] newBlobData
private static final java.lang.String clobData
private static final java.lang.String newClobData
public void testBug508()
throws java.lang.Exception
Test for bug #508, jTDS doesn't throw an exception when a connection is reset due to an error caused by insufficient server memory.
java.lang.Exceptionpublic void testBlobGet1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobGet2()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet2()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet3()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet4()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet5()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet6()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet7()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSet8()
throws java.lang.Exception
InputStream that doesn't fill the
buffer on read().
For bug #1008816 - "More data in stream ..." error when inserting an image.
java.lang.Exception - if an error condition occurspublic void testBlobUpdate1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobUpdate2()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobUpdate3()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobUpdate4()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobUpdate5()
throws java.lang.Exception
Blob.java.lang.Exceptionpublic void testBlobSetNull1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull2()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull3()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull4()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull5()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull6()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull7()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull8()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull9()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull10()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobSetNull11()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobGetBytes1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobGetBytes2()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobGetBytes3()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobLength1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobTruncate1()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobGet1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobGet2()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet2()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet3()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet4()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet5()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet6()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet7()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSet8()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate2()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate3()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate4()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate5()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobUpdate6()
throws java.lang.Exception
Clob manipulation including indexed writes.java.lang.Exceptionpublic void testClobSetNull1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull2()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull3()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull4()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull5()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull6()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull7()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull8()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull9()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull10()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull11()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull12()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull13()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobSetNull14()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobGetSubString1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobGetSubString2()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobGetSubString3()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobLength1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobTruncate1()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobCaching()
throws java.lang.Exception
java.lang.Exceptionpublic void testZeroLengthStreams()
throws java.lang.Exception
java.lang.Exceptionpublic void testBlobMethods()
throws java.lang.Exception
java.lang.Exceptionpublic void testClobMethods()
throws java.lang.Exception
java.lang.Exceptionprivate byte[] getBlobTestData()
private byte[] getNewBlobTestData()
private java.lang.String getClobTestData()
private java.lang.String getNewClobTestData()
private boolean compare(byte[] b1,
byte[] b2)
public boolean compare(java.lang.String s1,
java.lang.String s2)
Strings.public static void main(java.lang.String[] args)
Generated on June 8 2013