Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


com.oracle.services.bpel.test
Class TestAssertion

java.lang.Object
  extended by com.oracle.services.bpel.test.TestAssertion


public class TestAssertion
extends java.lang.Object

This class represents a test assertion.


Field Summary
static int ACTIVITY_ASSERTION
          assertion type indicating the assertion verified an activity's exection count.
static int VALUE_ASSERTION
          assertion type indicating the assertion compared simple values.
static int XML_ASSERTION
          assertion type indicating the assertion compared XML values.

 

Constructor Summary
TestAssertion(java.lang.String processName, java.lang.String processInstanceId, java.lang.String processTestName, java.lang.String activityName, java.lang.String actualPath, java.lang.String actualValue, java.lang.String expectedValue, java.lang.String message, boolean wasSuccessful, boolean wasExecuted, boolean isFatal, int iteration, int assertionType)
          The constructor to be used when adding failures that occurred in sub process tests.

 

Method Summary
 java.lang.String getActivityExecutedAt()
           
 java.lang.String getActualPath()
           
 java.lang.String getActualValue()
           
 int getAssertionType()
           
 java.lang.String getExpectedValue()
           
 java.lang.String getInstanceRefId()
           
 int getIteration()
           
 java.lang.String getMessage()
           
 java.lang.String getProcessName()
           
 java.lang.String getTestName()
           
 boolean getWasExecuted()
           
 boolean isFatalAssertion()
           
 boolean wasSuccessful()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

VALUE_ASSERTION

public static final int VALUE_ASSERTION
assertion type indicating the assertion compared simple values.
See Also:
Constant Field Values

XML_ASSERTION

public static final int XML_ASSERTION
assertion type indicating the assertion compared XML values.
See Also:
Constant Field Values

ACTIVITY_ASSERTION

public static final int ACTIVITY_ASSERTION
assertion type indicating the assertion verified an activity's exection count.
See Also:
Constant Field Values

Constructor Detail

TestAssertion

public TestAssertion(java.lang.String processName,
                     java.lang.String processInstanceId,
                     java.lang.String processTestName,
                     java.lang.String activityName,
                     java.lang.String actualPath,
                     java.lang.String actualValue,
                     java.lang.String expectedValue,
                     java.lang.String message,
                     boolean wasSuccessful,
                     boolean wasExecuted,
                     boolean isFatal,
                     int iteration,
                     int assertionType)
The constructor to be used when adding failures that occurred in sub process tests.
Parameters:
subProcessName - The name of the sub process the failure occurred in.
subProcessInstanceId - The instance id of the sub process.
subProcessTestName - The test driver of the sub process.
activityName - the name of the activity at which the assertion was executed.
actualPath - The path of the extracted value.
actualValue - The value extracted.
expectedValue - The value expected.
message - The error message.
wasSuccessful - Did the assertion succeed? Only relevant if wasExecuted is true.
wasExecuted - Was this assertion executed?
isFatal - Was the assertion fatal?
assertionType - The type of assertion. See the constants defined in this class.

Method Detail

isFatalAssertion

public boolean isFatalAssertion()
Returns:
was this assertion fatal?

wasSuccessful

public boolean wasSuccessful()
Returns:
was this assertion successful?

getMessage

public java.lang.String getMessage()
Returns:
the error message.

getExpectedValue

public java.lang.String getExpectedValue()
Returns:
the value expected by the assertion.

getActualValue

public java.lang.String getActualValue()
Returns:
the value extracted by the assertion.

getActivityExecutedAt

public java.lang.String getActivityExecutedAt()
Returns:
the activity at which the assertion was executed.

getActualPath

public java.lang.String getActualPath()
Returns:
the xpath used to extract the actual value.

getWasExecuted

public boolean getWasExecuted()
Returns:
was this assertion executed?

getAssertionType

public int getAssertionType()
Returns:
the assertion type (simple value, xml, or activity). See the constants defined in this class.

getProcessName

public java.lang.String getProcessName()
Returns:
the name of the subprocess.

getInstanceRefId

public java.lang.String getInstanceRefId()
Returns:
the instance reference id.

getIteration

public int getIteration()
Returns:
the activity iteration the assertion was executed at.

getTestName

public java.lang.String getTestName()
Returns:
the test name of the process.

Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


Copyright © 2006, Oracle. All rights reserved.