alma::acs::tmcdb::TestSnmpTables Class Reference

Inheritance diagram for alma::acs::tmcdb::TestSnmpTables:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::tmcdb::TestSnmpTables:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void testFillSnmpTmcdb () throws Exception

Protected Member Functions

void setUp () throws Exception

Private Member Functions

void createDB () throws HibernateUtilException
void dropDB () throws HibernateUtilException
void runScriptFile (String script, Connection conn) throws SQLException
void runScript (String sql, Connection conn) throws SQLException
InputStream getResourceStream (String pathname) throws IOException
String fileToString (Reader reader) throws IOException

Private Attributes

final String CREATE_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/CreateHsqldbTables.sql"
final String CREATE_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/CreateHsqldbTables.sql"
final String DROP_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/DropAllTables.sql"
final String DROP_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/DropAllTables.sql"
HibernateUtil hibernateUtil
Logger logger = Logger.getLogger("SnmpTmcdb")

Static Private Attributes

static final int DEFAULT_BUF_LEN = 64 * 1024

Detailed Description

TestTmcdb class tests TMCDB for SNMP. It creates a NodeTree, fills the TMCDB, and finally creates a new NodeTree based on the TMCDB content.

Version:
Id
TestSnmpTables.java,v 1.1.4.4 2010/04/14 21:01:46 rtobar Exp
Author:
P.Grosbol, ESO, <pgrosbol@eso.org>

Member Function Documentation

void alma::acs::tmcdb::TestSnmpTables::createDB (  )  throws HibernateUtilException [inline, private]
void alma::acs::tmcdb::TestSnmpTables::dropDB (  )  throws HibernateUtilException [inline, private]
String alma::acs::tmcdb::TestSnmpTables::fileToString ( Reader  reader  )  throws IOException [inline, private]

References DEFAULT_BUF_LEN.

Referenced by runScriptFile().

InputStream alma::acs::tmcdb::TestSnmpTables::getResourceStream ( String  pathname  )  throws IOException [inline, private]

Referenced by runScriptFile().

void alma::acs::tmcdb::TestSnmpTables::runScript ( String  sql,
Connection  conn 
) throws SQLException [inline, private]

Referenced by dropDB(), and runScriptFile().

void alma::acs::tmcdb::TestSnmpTables::runScriptFile ( String  script,
Connection  conn 
) throws SQLException [inline, private]

References fileToString(), getResourceStream(), and runScript().

Referenced by createDB(), and dropDB().

void alma::acs::tmcdb::TestSnmpTables::setUp (  )  throws Exception [inline, protected]
void alma::acs::tmcdb::TestSnmpTables::testFillSnmpTmcdb (  )  throws Exception [inline]

Member Data Documentation

final String alma::acs::tmcdb::TestSnmpTables::CREATE_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/CreateHsqldbTables.sql" [private]

Referenced by createDB().

final String alma::acs::tmcdb::TestSnmpTables::CREATE_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/CreateHsqldbTables.sql" [private]

Referenced by createDB().

final int alma::acs::tmcdb::TestSnmpTables::DEFAULT_BUF_LEN = 64 * 1024 [static, private]

Referenced by fileToString().

final String alma::acs::tmcdb::TestSnmpTables::DROP_TMCDB_SWCORE = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigcore/DropAllTables.sql" [private]

Referenced by dropDB().

final String alma::acs::tmcdb::TestSnmpTables::DROP_TMCDB_SWEXT = System.getenv("ACSDATA") + "/config/DDL/hsqldb/TMCDB_swconfigext/DropAllTables.sql" [private]

Referenced by dropDB().

Logger alma::acs::tmcdb::TestSnmpTables::logger = Logger.getLogger("SnmpTmcdb") [private]

Referenced by setUp().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2