alma::acs::exceptions::AcsJExceptionTest Class Reference

Inheritance diagram for alma::acs::exceptions::AcsJExceptionTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::exceptions::AcsJExceptionTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AcsJExceptionTest () throws Exception
void testGetErrorTrace ()
void testErrorTraceToAcsJExConversion ()
void testJCompletion ()
void testLogAcsJException ()

Private Member Functions

void checkWrapperAcsJEx (AcsJACSErrTest0Ex ex)

Private Attributes

ClientServerExceptionExample exSystem
String hostName

Detailed Description

Tests for AcsJException, alma.acs.exceptions.AcsJCompletion and the generated example subclasses.

Author:
hsommer Jun 18, 2003 3:54:40 PM

Constructor & Destructor Documentation

alma::acs::exceptions::AcsJExceptionTest::AcsJExceptionTest (  )  throws Exception [inline]

References exSystem, and hostName.


Member Function Documentation

void alma::acs::exceptions::AcsJExceptionTest::checkWrapperAcsJEx ( AcsJACSErrTest0Ex  ex  )  [inline, private]
void alma::acs::exceptions::AcsJExceptionTest::testErrorTraceToAcsJExConversion (  )  [inline]

Tests the conversion from AcsJACSErrTest0Ex to ErrorTrace and back, first by wrapping and later by directly converting a CORBA exception with/to a native Java exception.

Calls ClientServerExceptionExample#throwWrapperAcsJACSErrTest0Ex and ClientServerExceptionExample#throwConvertedAcsJACSErrTest0Ex to get the three linked exceptions

  • AcsJACSErrTest0Ex thrown locally ("client side"), only in case of throwWrapperAcsJACSErrTest0Ex
  • AcsJException caused by a NullPointerException, both thrown "remotely" in the implementation of the "server side" method ClientServerExceptionExample#throwACSErrTest0Ex and translated back and forth from an ErrorTrace

Checks that the exceptions are correctly chained up and the data is correct.

References checkWrapperAcsJEx(), exSystem, alma::acs::exceptions::AcsJException::getProperty(), alma::acs::exceptions::AcsJException::getTraceDepth(), alma::acs::exceptions::ClientServerExceptionExample::throwConvertedAcsJACSErrTest0Ex(), and alma::acs::exceptions::ClientServerExceptionExample::throwWrapperAcsJACSErrTest0Ex().

void alma::acs::exceptions::AcsJExceptionTest::testGetErrorTrace (  )  [inline]

Uses ClientServerExceptionExample#throwOriginalAcsJACSErrTest0Ex to verify the output of the method AcsJException#getErrorTrace. Thus what gets tested is the conversion from the AcsJ- to the CORBA world.

Fields which are more difficult to get out from an ErrorTrace object will be checked in subsequent tests.

References exSystem, alma::acs::exceptions::AcsJException::getErrorTrace(), alma::ACSErr::ErrorTrace::previousError, alma::acs::exceptions::ClientServerExceptionExample::throwOriginalAcsJACSErrTest0Ex(), and alma::ACSErr::ErrorTrace::timeStamp.

void alma::acs::exceptions::AcsJExceptionTest::testJCompletion (  )  [inline]
void alma::acs::exceptions::AcsJExceptionTest::testLogAcsJException (  )  [inline]

Member Data Documentation


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

Generated by  doxygen 1.6.2