org.objectweb.cjdbc.scenario.basic
Class ControllerJavaInstanceTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.templates.Template
              extended byorg.objectweb.cjdbc.scenario.templates.DatabaseTemplate
                  extended byorg.objectweb.cjdbc.scenario.basic.ControllerJavaInstanceTest

public class ControllerJavaInstanceTest
extends DatabaseTemplate

This class defines a ControllerJavaInstanceTest. Creates a Controller from java code (as opposed to load it with an xml configuration file) and check that it is able to handle requests.

Version:
1.0
Author:
Nicolas Modrzyk , Emmanuel Cecchet
See Also:
Serialized Form

Field Summary
(package private)  java.lang.String backendPassword
           
(package private)  java.lang.String backendTest
           
(package private)  java.lang.String backendUrl
           
(package private)  java.lang.String backendUser
           
(package private)  java.lang.String cjdbcDriver
           
(package private)  Controller controller
           
(package private)  java.lang.String driverClass
           
(package private)  java.lang.String driverJar
           
(package private)  java.lang.String driverPath
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.DatabaseTemplate
hm, hm1
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
ControllerJavaInstanceTest()
           
 
Method Summary
 void tearDown()
           
 void testBackendTestStatement()
          Test the test statement on a hypersonic backend
 void testCreateDistributedVirtualDatabase()
          Test the creation of a DistributedVirtualDatabase and send some requests
 void testCreateVirtualDatabase()
          Test the creation of a virtual database and send some requests.
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.DatabaseTemplate
setUp
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Template
getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getHypersonicConnection
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cjdbcDriver

java.lang.String cjdbcDriver

driverJar

java.lang.String driverJar

driverClass

java.lang.String driverClass

driverPath

java.lang.String driverPath

backendTest

java.lang.String backendTest

backendUrl

java.lang.String backendUrl

backendUser

java.lang.String backendUser

backendPassword

java.lang.String backendPassword

controller

Controller controller
Constructor Detail

ControllerJavaInstanceTest

public ControllerJavaInstanceTest()
Method Detail

tearDown

public void tearDown()
Overrides:
tearDown in class DatabaseTemplate
See Also:
junit.framework.TestCase#tearDown()

testBackendTestStatement

public void testBackendTestStatement()
                              throws java.lang.Exception
Test the test statement on a hypersonic backend

Throws:
java.lang.Exception - if fails

testCreateVirtualDatabase

public void testCreateVirtualDatabase()
                               throws java.lang.Exception
Test the creation of a virtual database and send some requests.

Throws:
java.lang.Exception - if fails

testCreateDistributedVirtualDatabase

public void testCreateDistributedVirtualDatabase()
                                          throws java.lang.Exception
Test the creation of a DistributedVirtualDatabase and send some requests

Throws:
java.lang.Exception - if fails


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.