org.objectweb.cjdbc.scenario.standalone.sql.request
Class CreateRequestTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.standalone.sql.request.CreateRequestTest

public class CreateRequestTest
extends NoTemplate

CreateRequest test class.

Author:
Mathieu Peltier org.objectweb.cjdbc.common.sql..CreateRequest
See Also:
Serialized Form

Nested Class Summary
protected  class CreateRequestTest.ParsingResult
          Stores the expected result of the call to
 
Field Summary
private  AbstractDatabase database
          Database on which the requests are performed.
private static java.lang.String EMPTY_VALUE
          Null value to used in the requests file if needed.
private static boolean inited
           
private  java.util.ArrayList results
          List of ParsingResult objects.
private static java.lang.String RUBIS_CREATE_REQUESTS_FILE
          File name containing the requests to test.
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
CreateRequestTest()
           
 
Method Summary
private  void parse(CreateRequestTest.ParsingResult result, boolean isCaseSensitive)
          Perfoms the parsing test.
protected  void setUp()
           
 void testParseCreateRequest()
          org.objectweb.cjdbc.common.sql.CreateRequest#parse(DatabaseSchema, int, boolean)
 
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

RUBIS_CREATE_REQUESTS_FILE

private static final java.lang.String RUBIS_CREATE_REQUESTS_FILE
File name containing the requests to test.


EMPTY_VALUE

private static final java.lang.String EMPTY_VALUE
Null value to used in the requests file if needed.

See Also:
Constant Field Values

database

private AbstractDatabase database
Database on which the requests are performed.


results

private java.util.ArrayList results
List of ParsingResult objects.


inited

private static boolean inited
Constructor Detail

CreateRequestTest

public CreateRequestTest()
Method Detail

setUp

protected void setUp()
See Also:
junit.framework.TestCase#setUp()

testParseCreateRequest

public void testParseCreateRequest()
org.objectweb.cjdbc.common.sql.CreateRequest#parse(DatabaseSchema, int, boolean)


parse

private void parse(CreateRequestTest.ParsingResult result,
                   boolean isCaseSensitive)
Perfoms the parsing test.

Parameters:
result - expected result
isCaseSensitive - true if the parsing must be case sensitive.


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