Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-06

oracle.apps.fnd.applxdf.junitrt.common
Class XDFTestUtil

java.lang.Object
  extended by oracle.apps.fnd.applxdf.junitrt.common.XDFTestUtil

public class XDFTestUtil
extends java.lang.Object


Constructor Summary
XDFTestUtil()
           
 
Method Summary
static java.lang.String[] compareXDFWithDB(java.sql.Connection dbConn, UseCase usecase)
          Compares the returns true if comparision found some differences
static java.sql.Connection createConnectionPool(java.lang.String url, java.lang.String username, java.lang.String password, int capacity)
          Creates a connection pool with 'capacity' no of active jdbc connections
static boolean doesNodeExist(java.io.File file, java.lang.String expr)
           
static java.sql.Connection getConnection()
          Check and deliver a active jdbc connection.
static java.util.logging.Logger getLogger()
          creates a logger for XDFTestcases to log the messages in XDFlogger.log
static org.w3c.dom.NodeList getNodesFromXPathExpression(java.io.File file, java.lang.String expr)
          For a given file name and a valid xpath expression it returns the node list
static java.util.Hashtable<java.lang.String,java.lang.String> getUDPList(java.lang.String objectType)
           
static java.lang.String getValueFromXPathExpression(java.io.File file, java.lang.String expr)
          For a given file name and a valid xpath expression it returns the n0de value
static void handleExceptionStream(java.lang.Throwable message)
          logs the Error messages on to the XDFLogger.log file
static java.lang.String[] parseSqlScript(java.lang.String sqlScript)
           
static void purgeConnectionPool()
          Finally Purge all connections
static void releaseConnection(java.sql.Connection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XDFTestUtil

public XDFTestUtil()
Method Detail

getLogger

public static java.util.logging.Logger getLogger()
creates a logger for XDFTestcases to log the messages in XDFlogger.log

Returns:
Logger

handleExceptionStream

public static void handleExceptionStream(java.lang.Throwable message)
logs the Error messages on to the XDFLogger.log file

Parameters:
message -

createConnectionPool

public static java.sql.Connection createConnectionPool(java.lang.String url,
                                                       java.lang.String username,
                                                       java.lang.String password,
                                                       int capacity)
                                                throws java.lang.Exception
Creates a connection pool with 'capacity' no of active jdbc connections

Parameters:
capacity -
Throws:
java.lang.Exception

getConnection

public static java.sql.Connection getConnection()
                                         throws java.lang.Exception
Check and deliver a active jdbc connection.

Returns:
Throws:
java.lang.Exception

releaseConnection

public static void releaseConnection(java.sql.Connection conn)
                              throws java.lang.Exception
Throws:
java.lang.Exception

purgeConnectionPool

public static void purgeConnectionPool()
                                throws java.sql.SQLException
Finally Purge all connections

Throws:
java.sql.SQLException

parseSqlScript

public static final java.lang.String[] parseSqlScript(java.lang.String sqlScript)

compareXDFWithDB

public static java.lang.String[] compareXDFWithDB(java.sql.Connection dbConn,
                                                  UseCase usecase)
                                           throws java.lang.Exception
Compares the returns true if comparision found some differences

Throws:
java.lang.Exception

getValueFromXPathExpression

public static final java.lang.String getValueFromXPathExpression(java.io.File file,
                                                                 java.lang.String expr)
                                                          throws java.lang.Exception
For a given file name and a valid xpath expression it returns the n0de value

Parameters:
file -
expr -
Returns:
value
Throws:
java.lang.Exception

getNodesFromXPathExpression

public static final org.w3c.dom.NodeList getNodesFromXPathExpression(java.io.File file,
                                                                     java.lang.String expr)
                                                              throws java.lang.Exception
For a given file name and a valid xpath expression it returns the node list

Parameters:
file -
expr -
Returns:
NodeList
Throws:
java.lang.Exception

doesNodeExist

public static final boolean doesNodeExist(java.io.File file,
                                          java.lang.String expr)

getUDPList

public static java.util.Hashtable<java.lang.String,java.lang.String> getUDPList(java.lang.String objectType)
                                                                         throws java.lang.Exception
Throws:
java.lang.Exception

Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.6)

E22566-06

Copyright © 2012 Oracle. All Rights Reserved.