|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.derbyTesting.junit.BaseTestCase
org.apache.derbyTesting.junit.BaseJDBCTestCase
org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobStoredProcedureTest
public class BlobStoredProcedureTest
Tests the stored procedures introduced as part of DERBY-208. These stored procedures will used by the Blob methods on the client side.
| Field Summary | |
|---|---|
(package private) java.lang.String |
testStr
|
(package private) long |
testStrLength
|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
BlobStoredProcedureTest(java.lang.String name)
Public constructor required for running test as standalone JUnit. |
|
| Method Summary | |
|---|---|
protected void |
setUp()
Setup the test. |
static junit.framework.Test |
suite()
Create a suite of tests. |
protected void |
tearDown()
Cleanup the test. |
void |
testBlobCreateLocatorSP()
Tests the locator value returned by the stored procedure BLOBCREATELOCATOR. |
void |
testBlobGetBytesSP()
test the BLOBGETBYTES stored procedure which will be used in the implementation of Blob.getBytes. |
void |
testBlobGetLengthSP()
Tests the SYSIBM.BLOBGETLENGTH stored procedure. |
void |
testBlobGetPositionFromBytesSP()
Tests the SYSIBM.BLOBGETPOSITIONFROMBYTES stored procedure. |
void |
testBlobGetPositionFromLocatorSP()
Tests the SYSIBM.BLOBGETPOSITIONFROMLOCATOR stored procedure. |
void |
testBlobReleaseLocatorSP()
Tests the SYSIBM.BLOBRELEASELOCATOR stored procedure. |
void |
testBlobSetBytes()
Tests the stored procedure SYSIBM.BLOBSETBYTES |
void |
testBlobTruncateSP()
Test the stored procedure SYSIBM.BLOBGETLENGTH |
| Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, 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 |
| Field Detail |
|---|
final java.lang.String testStr
final long testStrLength
| Constructor Detail |
|---|
public BlobStoredProcedureTest(java.lang.String name)
name - a string containing the name of the test.| Method Detail |
|---|
public static junit.framework.Test suite()
protected void setUp()
throws java.sql.SQLException,
java.io.UnsupportedEncodingException
setUp in class junit.framework.TestCasejava.io.UnsupportedEncodingException
a - SQLException.
java.sql.SQLException
protected void tearDown()
throws java.lang.Exception
tearDown in class BaseJDBCTestCaseSQLException.
java.lang.Exception
public void testBlobGetBytesSP()
throws java.sql.SQLException,
java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
a - SQLException.
java.sql.SQLException
public void testBlobCreateLocatorSP()
throws java.sql.SQLException
SQLException.
java.sql.SQLException
public void testBlobReleaseLocatorSP()
throws java.sql.SQLException
java.sql.SQLException
public void testBlobGetLengthSP()
throws java.sql.SQLException
SQLException.
java.sql.SQLException
public void testBlobGetPositionFromBytesSP()
throws java.lang.Exception
SQLException.
java.lang.Exception
public void testBlobSetBytes()
throws java.sql.SQLException,
java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
SQLException.
java.sql.SQLException
public void testBlobTruncateSP()
throws java.sql.SQLException
java.sql.SQLException
public void testBlobGetPositionFromLocatorSP()
throws java.sql.SQLException,
java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
SQLException.
java.sql.SQLException
|
Built on Wed 2009-11-25 18:43:31-0800, from revision 884373 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||