Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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]
 


Member Function Documentation

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

Checks the structure and values of the exception obtained from ClientServerExceptionExample#throwWrapperAcsJACSErrTest0Ex(boolean).

Parameters:
ex 

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.

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.

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

Creates Completion objects from scratch, from other completion objects, with and without associated exception, and checks the values.

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

Checks if logging of ACS exceptions (including caused-by exceptions) works. See also alma.demo.client.XmlComponentClient::testException() in module jcontexmpl.


Member Data Documentation

ClientServerExceptionExample alma::acs::exceptions::AcsJExceptionTest::exSystem [private]
 

String alma::acs::exceptions::AcsJExceptionTest::hostName [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:56 2009 for ACS Java API by doxygen 1.3.8