org.h2.test.server
Class TestAutoServer

java.lang.Object
  extended by org.h2.test.TestBase
      extended by org.h2.test.server.TestAutoServer

public class TestAutoServer
extends TestBase

Tests automatic embedded/server mode.


Field Summary
 
Fields inherited from class org.h2.test.TestBase
baseDir, config, start
 
Constructor Summary
TestAutoServer()
           
 
Method Summary
static void halt(int exitValue)
          This method is called via reflection from the database.
static void main(java.lang.String... a)
          Run just this test.
 void test()
          This method will be called by the test framework.
 void testAutoServer()
          Tests basic AUTO_SERVER functionality
 
Methods inherited from class org.h2.test.TestBase
assertContains, assertEqualDatabases, assertEqualReaders, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualStreams, assertFalse, assertFalse, assertKnownException, assertKnownException, assertResult, assertResultRowCount, assertResultSetMeta, assertResultSetOrdered, assertSingleValue, assertSmaller, assertStartsWith, assertTrue, assertTrue, crash, createCaller, createCaller, deleteDb, deleteDb, eatMemory, fail, fail, freeMemory, getClassPath, getConnection, getConnection, getMemoryUsed, getPageStoreProperty, getPassword, getPassword, getSize, getTestDir, getURL, getUser, init, init, logError, println, printTime, printTimeMemory, readString, runTest, startServerIfRequired, testCase, trace, trace, traceMemory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAutoServer

public TestAutoServer()
Method Detail

main

public static void main(java.lang.String... a)
                 throws java.lang.Exception
Run just this test.

Parameters:
a - ignored
Throws:
java.lang.Exception

test

public void test()
          throws java.lang.Exception
Description copied from class: TestBase
This method will be called by the test framework.

Specified by:
test in class TestBase
Throws:
java.lang.Exception - if an exception in the test occurs

testAutoServer

public void testAutoServer()
                    throws java.lang.Exception
Tests basic AUTO_SERVER functionality

Throws:
java.lang.Exception

halt

public static void halt(int exitValue)
This method is called via reflection from the database.

Parameters:
exitValue - the exit value