tst
Class SQLindTester

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by tst.SQLindTester
All Implemented Interfaces:
junit.framework.Test

public abstract class SQLindTester
extends junit.framework.TestCase

Parent class for all Mapper projects

Author:
Rives Davy

Nested Class Summary
protected  class SQLindTester.Counter
           
protected  class SQLindTester.TestThread
           
protected  class SQLindTester.TestThreadSafe
           
protected  class SQLindTester.Timer
           
 
Field Summary
protected static String TST_QUERIES_XML
           
 
Constructor Summary
SQLindTester()
           
 
Method Summary
protected abstract  void closeCnxObj(Object cnxObj)
           
protected abstract  Object getCnxObj()
           
protected abstract  net.sqlind.SQLQueryMapper.GenericQueryHandler getSQLQueryHandlerImpl(String schema, String queryId, String... params)
           
protected abstract  String getTestInject()
           
protected  SQLindTester.Counter performDeepReflect(Object cnxObj, List<Bean> results, String queryId, String injectID)
           
protected  SQLindTester.Counter performDeepTransfo(Object cnxObj, List<Bean> results, String queryId, String injectID)
           
protected abstract  void performQuery(Object cnxObj, net.sqlind.SQLQueryMapper.GenericQueryHandler handler, net.sqlind.SQLQueryMapper.QueryBehavior behavior)
           
protected  void setUp()
           
 void testDeepReflectWiringPolicy()
           
 void testDeepTransfoWiringPolicy()
           
 void testProfiling()
           
 void testThreadSafe()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TST_QUERIES_XML

protected static final String TST_QUERIES_XML
See Also:
Constant Field Values
Constructor Detail

SQLindTester

public SQLindTester()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testProfiling

public void testProfiling()

testThreadSafe

public void testThreadSafe()
                    throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

performDeepTransfo

protected SQLindTester.Counter performDeepTransfo(Object cnxObj,
                                                  List<Bean> results,
                                                  String queryId,
                                                  String injectID)
                                           throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

performDeepReflect

protected SQLindTester.Counter performDeepReflect(Object cnxObj,
                                                  List<Bean> results,
                                                  String queryId,
                                                  String injectID)
                                           throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

testDeepTransfoWiringPolicy

public void testDeepTransfoWiringPolicy()
                                 throws Exception
Throws:
Exception

testDeepReflectWiringPolicy

public void testDeepReflectWiringPolicy()
                                 throws Exception
Throws:
Exception

getTestInject

protected abstract String getTestInject()

getCnxObj

protected abstract Object getCnxObj()

closeCnxObj

protected abstract void closeCnxObj(Object cnxObj)
                             throws SQLException
Throws:
SQLException

getSQLQueryHandlerImpl

protected abstract net.sqlind.SQLQueryMapper.GenericQueryHandler getSQLQueryHandlerImpl(String schema,
                                                                                        String queryId,
                                                                                        String... params)
                                                                                 throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException

performQuery

protected abstract void performQuery(Object cnxObj,
                                     net.sqlind.SQLQueryMapper.GenericQueryHandler handler,
                                     net.sqlind.SQLQueryMapper.QueryBehavior behavior)
                              throws net.sqlind.SQLQueryMapper.SQLMapperException
Throws:
net.sqlind.SQLQueryMapper.SQLMapperException


Copyright © 2011. All Rights Reserved.