|
|||||||||
| 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.lang.AggregateClassLoadingTest
public class AggregateClassLoadingTest
Test for ensuring the aggregate implementation classes are loaded correctly,
even when the context class loader loads Derby engine classes as well. This
is a typical situation we have seen with J2EE servers where Derby may be in
the application WAR and provided as a system service by the container.
Jira issue DERBY-997
Assumes embedded and only needs to be run in embedded, since all class
loading happens on the engine side.
| Field Summary |
|---|
| Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase |
|---|
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE |
| Constructor Summary | |
|---|---|
AggregateClassLoadingTest(java.lang.String name)
Basic constructor. |
|
| Method Summary | |
|---|---|
protected void |
initializeConnection(java.sql.Connection conn)
Sets the auto commit to false. |
static junit.framework.Test |
suite()
Returns the implemented tests. |
private void |
testAggregate(java.lang.String query)
Just run and display the aggregates result. |
void |
testAggregateAVG()
|
void |
testAggregateCOUNT()
|
void |
testAggregateCOUNT2()
|
void |
testAggregateMAX()
|
void |
testAggregateMIN()
|
| 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, setUp, 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 |
|---|
public AggregateClassLoadingTest(java.lang.String name)
| Method Detail |
|---|
protected void initializeConnection(java.sql.Connection conn)
throws java.sql.SQLException
initializeConnection in class BaseJDBCTestCaseconn - Connection to be intialized
java.sql.SQLException - Error setting the initial state.public static junit.framework.Test suite()
Test with the implemented tests to
run.
public void testAggregateMAX()
throws java.sql.SQLException
java.sql.SQLException
public void testAggregateMIN()
throws java.sql.SQLException
java.sql.SQLException
public void testAggregateAVG()
throws java.sql.SQLException
java.sql.SQLException
public void testAggregateCOUNT()
throws java.sql.SQLException
java.sql.SQLException
public void testAggregateCOUNT2()
throws java.sql.SQLException
java.sql.SQLException
private void testAggregate(java.lang.String query)
throws java.sql.SQLException
java.sql.SQLException
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||