Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl.apt
Class UTestAnnotationConverter

java.lang.Object
  extended by oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
      extended by oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
          extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.apt.UTestAnnotationConverter

public class UTestAnnotationConverter
extends TestBaseDiagfwk

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/test/oracle/apps/fnd/appltest/diagfwk/engine/impl/apt/UTestAnnotationConverter.java /main/17 2008/09/24 12:33:03 ilawler Exp $
Author:
daferrar

Nested Class Summary
static class UTestAnnotationConverter.SampleTest
          A Sample Java Test class to illustrate the use of annotations to specify test definition metadata
 
Field Summary
 
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
SYSPROP_ORACLE_ADR_BASE, SYSPROP_ORACLE_ADR_HOME, SYSPROP_ORACLE_ADR_INSTANCE_ID, SYSPROP_ORACLE_ADR_PRODUCT_ID, SYSPROP_TEST_DIR
 
Fields inherited from class oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
mWorkingDir
 
Constructor Summary
UTestAnnotationConverter()
           
 
Method Summary
 oracle.xml.parser.schema.XMLSchema getSchema(java.io.InputStream xsdIS)
           
static void main(java.lang.String[] args)
           
 void setUp()
           
static void setUpBeforeClass()
          Use the SampleTest class to validate
static junit.framework.Test suite()
           
static void tearDown()
           
 void testAddName()
          Test that testDefType name is set correctly.
 void testCreateStepDef()
          Test that a JavaStepDef was create and added to the testDefType
 void testCreateSteps()
          Test that a step was created and added to the testDeftype
 void testCreateTestDefMetadata()
          Is this test set up correctly
 void testMain()
           
 void testProcessAndTaxonomyTags()
          Test testDefType.getTags, this can be filled by a Tags - Tag annotation and Taxonomy - Module annotations.
 void testProcessInputParameter()
          Test testDeftype Inputs InputParameters
 void testProcessInputs()
          Test testDefType Inputs
 void testProcessOutputParameter()
          Test testDefType Outputs OutputParameter
 void testProcessOutputs()
          Test testDefType Outputs
 void testProcessPLSQLPkg()
          Test to see if testDefType.getTargetModules() contains objects for the TargetPLSQLPkgs annotation
 void testProcessPrereqs()
          Test testDefType Prereqs
 void testProcessTag()
          Test testDefType.getTags has TagNameValue objects inserted by the Tags Tag annotations
 void testProcessTargetJavaClasses()
          Test testDefType.getTargetModule has JavaClassType as inserted by TargetJavaClasses annotation
 void testProcessTargetPLSQLPkgs()
          The testDefType.getTargetModules.getJavaClassOrPlsqlPkg() contains objects for both the TargetJavaClasses and TargetPLSQLPkgs annotations so check the count
 void testProcessTaxonomyTagsModules()
          Test testDefType.getTags has TagValueIdType objects inserted by the TaxonomyTags Module annotations
 void testProcessTestDef()
          Test that the TestDef annotation info is copied into testDefType
 void validateXMLDoc(java.io.InputStream xmlIS, java.io.InputStream xsdIS)
          Helper method to validate an xml InputStream with a XMLSchema
 void validationTest()
          Marshal the testDefType to xml and validate with testDef.xsd
 void validationTest(TestDefType tdt)
           
 
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.TestBaseDiagfwk
addSummaryMsg, assertCount, assertCountActiveInputParams, assertCountActiveOutputParams, assertCountActivePrereqs, assertCountActiveTagValues, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsBobj, assertEqualsListSize, assertFileContains_s, assertFileContainsUnderWorkDir, assertInputSetExists, assertListContents, assertNestedExecsForRun, assertNotTagValueAssocInTest, assertRunExists, assertRunNotExists, assertRunNotExistsById, assertSingeTestGotCreated, assertTagExists, assertTagIdNotExists, assertTagValueAssocExists, assertTagValueExists, assertTagValueIdNotExists, assertTestDefExists, assertTestDefExists, assertTestDefNotExists, assertTestExecExists, assertTestExecs, assertTestMetadataDoesNotReferenceTagValueId, assertTestParamExists, assertTestParamExists, assertTestsGotCreated, checkTagExists, cleanPSRConnectionPool, clearAdrSystemProperties, createIncident, createIncident, createInputSet, createPSRConnectionPool, delete, deleteDir, deleteFileUnderWorkDir_s, deleteFNDMessage, deleteInputSet, deleteModuleId, deleteModuleIdByModKeys, deleteProfileValue, deleteProfileValueAtSiteLevel, deleteRun, deleteTag, deleteTagValue, deleteTaxModules, deleteTestDef, deleteTestExec, doLoginAsSpecificUser, fetchTestRun, getConnection, getDefaultADRBase, getFileContents, getSysGuid, getTestPassword, getTestPasswordAsArg, getTestUserName, getTestUserNameAsArg, getWorkDir, grantAllTagPrivs, grantAllTagPrivsByName, grantAllTestPrivs, grantAllTestPrivsByName, grantTestUpdateAllowed, insertFNDMessage, insertModuleDelHeirarchy, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertModuleId, insertTag, insertTag, insertTagValue, insertTagValue, insertTagValue, insertTagValueHeirarchy, insertTagValuePrereq, insertTagValuePrereq, insertTagValueWithParent, loadTaxModuleHeirarchy, loadTaxModules, loadTests, loadTests, loginAsAdmin, loginAsAdvancedUser, loginAsAnonymous, loginAsDefault, loginAsRegularUser, loginAsViewer, lookupModuleIdForKey, makeDescriptiveHeader, makeErrorInfo, makeFixInfo, makeHeader, makeMessage, makeMessageLinkExternal, makeMessageLinkInternal, makeMsgList, makeNameValue, makeSection, makeStepReportExtn, makeSummaryInfo, makeTable, makeTestReportExtn, removeCycleSrcIdPrereqId, returnConnection, runTest, runTests, runTests, saveProfileValue, saveProfileValueAtSiteLevel, setAdrSystemProperties, setTestPassword, setTestUserName, setUpBaseDiag, setUpBaseDiagClass, tearDownBaseDiag, tearDownBaseDiagClass, toList, verifyExtractedReportsExist, verifyExtractedReportsExist, verifyExtractedReportsExist, verifyExtractedReportsExist, verifyFileExists, verifyTestRun, writeFile, writeFile
 
Methods inherited from class oracle.apps.fnd.appllcm.sdk.common.TestBaseLCM
assertFileContains, deleteFilesUnderDir, deleteFilesUnderDir, deleteFileUnderDir, deleteFileUnderWorkDir, getWorkingDir, setUpBase, setWorkingDir, tearDownBase, writeFileUnderDir, writeFileUnderWorkDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTestAnnotationConverter

public UTestAnnotationConverter()
Method Detail

main

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

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

setUpBeforeClass

public static void setUpBeforeClass()
                             throws java.lang.Exception
Use the SampleTest class to validate

Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()

tearDown

public static void tearDown()

testCreateTestDefMetadata

public void testCreateTestDefMetadata()
Is this test set up correctly


testAddName

public void testAddName()
Test that testDefType name is set correctly.


testCreateSteps

public void testCreateSteps()
Test that a step was created and added to the testDeftype


testCreateStepDef

public void testCreateStepDef()
Test that a JavaStepDef was create and added to the testDefType


testProcessTestDef

public void testProcessTestDef()
Test that the TestDef annotation info is copied into testDefType


testProcessInputs

public void testProcessInputs()
Test testDefType Inputs


testProcessInputParameter

public void testProcessInputParameter()
Test testDeftype Inputs InputParameters


testProcessOutputs

public void testProcessOutputs()
Test testDefType Outputs


testProcessOutputParameter

public void testProcessOutputParameter()
Test testDefType Outputs OutputParameter


testProcessPrereqs

public void testProcessPrereqs()
Test testDefType Prereqs


testProcessAndTaxonomyTags

public void testProcessAndTaxonomyTags()
Test testDefType.getTags, this can be filled by a Tags - Tag annotation and Taxonomy - Module annotations.


testProcessTag

public void testProcessTag()
Test testDefType.getTags has TagNameValue objects inserted by the Tags Tag annotations


testProcessTaxonomyTagsModules

public void testProcessTaxonomyTagsModules()
Test testDefType.getTags has TagValueIdType objects inserted by the TaxonomyTags Module annotations


testProcessTargetJavaClasses

public void testProcessTargetJavaClasses()
Test testDefType.getTargetModule has JavaClassType as inserted by TargetJavaClasses annotation


testProcessTargetPLSQLPkgs

public void testProcessTargetPLSQLPkgs()
The testDefType.getTargetModules.getJavaClassOrPlsqlPkg() contains objects for both the TargetJavaClasses and TargetPLSQLPkgs annotations so check the count


testProcessPLSQLPkg

public void testProcessPLSQLPkg()
Test to see if testDefType.getTargetModules() contains objects for the TargetPLSQLPkgs annotation


validationTest

public void validationTest()
Marshal the testDefType to xml and validate with testDef.xsd


testMain

public void testMain()

validationTest

public void validationTest(TestDefType tdt)
Parameters:
tdt -

validateXMLDoc

public void validateXMLDoc(java.io.InputStream xmlIS,
                           java.io.InputStream xsdIS)
Helper method to validate an xml InputStream with a XMLSchema

Parameters:
xmlIS -
xsdIS -

getSchema

public oracle.xml.parser.schema.XMLSchema getSchema(java.io.InputStream xsdIS)
Parameters:
xsdIS -
Returns:
XMLSchema from the passed in xsdIS

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.