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

E22566-06

oracle.apps.fnd.applxdf.junitrt.testcases
Class XDFTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by oracle.apps.fnd.applxdf.junitrt.testcases.XDFTest
All Implemented Interfaces:
junit.framework.Test, ILoggingObserver
Direct Known Subclasses:
BootstrapTest, IndexTest, MViewLogTest, MViewTest, SequenceTest, SynonymTest, TableFKTest, TableTest, TriggerTest, ViewTest

public abstract class XDFTest
extends junit.framework.TestCase
implements ILoggingObserver


Field Summary
static java.lang.String BASE_CHECK
           
static boolean createLogMsg
           
static java.lang.String testType
           
static java.lang.String UDP_CHECK
           
protected  UseCase useCase
           
 
Constructor Summary
XDFTest(UseCase useCase)
           
 
Method Summary
 int applyXDF(java.lang.String[] args)
          Implementation of Xdf Schema Deploy.
protected abstract  void checkMoreInDb()
          This abstract method needs to be implemented in individual objects.
 void createReader()
          Creates a reader Object to read the log message file.
protected abstract  void doBasicDbCheck()
           
protected  void runTest()
          Override the default runtest mechanism of Junit testcases inorder to create tests @ runtime This enables us to create testXXX() at runtime by passing it as an argument ot the constrcutor of this class.
protected  void setUp()
          This method does the required setup for running the testcase
protected  void tearDown()
          Dont leave the database in an uncompromised state
 void update(ObservableTextLogger o, java.lang.Object arg)
          This method compares the messages generated by the logger with the messages from the standard log file.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

useCase

protected UseCase useCase

createLogMsg

public static boolean createLogMsg

testType

public static java.lang.String testType

BASE_CHECK

public static java.lang.String BASE_CHECK

UDP_CHECK

public static java.lang.String UDP_CHECK
Constructor Detail

XDFTest

public XDFTest(UseCase useCase)
Method Detail

checkMoreInDb

protected abstract void checkMoreInDb()
                               throws java.lang.Exception
This abstract method needs to be implemented in individual objects.

Throws:
java.lang.Exception

doBasicDbCheck

protected abstract void doBasicDbCheck()
                                throws java.lang.Exception
Throws:
java.lang.Exception

applyXDF

public final int applyXDF(java.lang.String[] args)
                   throws java.lang.Exception
Implementation of Xdf Schema Deploy. It deploys the XDF and validates the result.

Parameters:
args -
Returns:
Throws:
java.lang.Exception

update

public void update(ObservableTextLogger o,
                   java.lang.Object arg)
This method compares the messages generated by the logger with the messages from the standard log file.

Specified by:
update in interface ILoggingObserver

createReader

public final void createReader()
                        throws java.io.FileNotFoundException,
                               java.io.IOException
Creates a reader Object to read the log message file.

Throws:
java.io.FileNotFoundException
java.io.IOException

setUp

protected void setUp()
This method does the required setup for running the testcase

Overrides:
setUp in class junit.framework.TestCase

runTest

protected void runTest()
Override the default runtest mechanism of Junit testcases inorder to create tests @ runtime This enables us to create testXXX() at runtime by passing it as an argument ot the constrcutor of this class.

Overrides:
runTest in class junit.framework.TestCase
Throws:
java.lang.Throwable

tearDown

protected void tearDown()
Dont leave the database in an uncompromised state

Overrides:
tearDown in class junit.framework.TestCase
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.