public class RoutineTest extends BaseJDBCTestCase
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CANNOT_STUFF_NULL_INTO_PRIMITIVE |
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
Constructor and Description |
---|
RoutineTest(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static int |
checkCount(int count) |
static java.lang.String |
concat(java.lang.String s1,
java.lang.String s2) |
static java.lang.Integer |
getNullInt() |
static int |
negateInt(int arg) |
static java.sql.Time |
nullAtNoon(java.sql.Time t) |
static void |
p5749(java.lang.String s) |
static int |
same(int i) |
static junit.framework.Test |
suite() |
void |
test_4459()
Test that we don't get verification errors trying to cram nulls
into primitive args.
|
void |
test_5749()
DERBY-5749: Too long (non-blank) argument for VARCHAR parameter does not
throw as expected.
|
void |
testAggregateArgument()
Test function with an aggregate argument.
|
void |
testFunctionNullHandling()
Test that functions handle being called or not called
when it is passed a NULL argument correctly.
|
void |
testFunctionResultDataTypeValidation()
Test that function result data types are resolved correctly for numeric
types that Derby supports that are simply mappable or object mappable.
|
void |
testFunctionReturnsNullOnNullInput()
Test that RETURNS NULL ON NULL INPUT works properly with
numeric datatypes for null and non-null values.
|
assertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, tearDown, usingDB2Client, usingDerbyNetClient, usingEmbedded
alarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceit
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, setUp, toString
private static final java.lang.String CANNOT_STUFF_NULL_INTO_PRIMITIVE
public static junit.framework.Test suite()
public void testFunctionResultDataTypeValidation() throws java.sql.SQLException
java.sql.SQLException
public void testFunctionReturnsNullOnNullInput() throws java.sql.SQLException
java.sql.SQLException
public void testFunctionNullHandling() throws java.sql.SQLException, java.io.UnsupportedEncodingException
java.sql.SQLException
java.io.UnsupportedEncodingException
public void testAggregateArgument() throws java.sql.SQLException
java.sql.SQLException
public void test_4459() throws java.lang.Exception
java.lang.Exception
public void test_5749() throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String concat(java.lang.String s1, java.lang.String s2)
public static int same(int i)
public static java.sql.Time nullAtNoon(java.sql.Time t)
public static int checkCount(int count) throws java.sql.SQLException
java.sql.SQLException
public static int negateInt(int arg)
public static java.lang.Integer getNullInt()
public static void p5749(java.lang.String s)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.