org.objectweb.cjdbc.sql
Class UpdateRequestTest

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.sql.UpdateRequestTest

public class UpdateRequestTest
extends TestCase

Author:
Mathieu Peltier
See Also:
UpdateRequest, Serialized Form

Nested Class Summary
protected  class UpdateRequestTest.ParsingResult
          Stores the expected result of the call to UpdateRequest.parse(DatabaseSchema, int, boolean) method.
 
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  java.util.ArrayList results
          List of ParsingResult objects.
private static java.lang.String RUBIS_SELECT_REQUESTS_FILE
          File name containing the requests to test.
private static java.lang.String RUBIS_UPDATE_REQUESTS_FILE
          File name containing the requests to test.
 
Constructor Summary
UpdateRequestTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
private  void parse(UpdateRequestTest.ParsingResult result, boolean isCaseSensitive)
          Perfoms the parsing test.
protected  void setUp()
           
static Test suite()
           
 void testParse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUBIS_UPDATE_REQUESTS_FILE

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

See Also:
Constant Field Values

RUBIS_SELECT_REQUESTS_FILE

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

See Also:
Constant Field Values

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.

Constructor Detail

UpdateRequestTest

public UpdateRequestTest()
Method Detail

suite

public static Test suite()

main

public static void main(java.lang.String[] args)

setUp

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

testParse

public void testParse()
See Also:
UpdateRequest.parse(DatabaseSchema, int, boolean)

parse

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

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


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