test.java
Class ErrTests

java.lang.Object
  extended by test.java.ErrTests

public class ErrTests
extends java.lang.Object

Defines tests which exercise error condition handling in Aida. Usage: aidatest daErrTest {1,2,3...}1+

Version:
15-Sep-2004, Greg White (greg): Convert use of Err for singleton re-write.
Author:
05-Sep-2004, Greg White.

Constructor Summary
ErrTests(java.lang.String[] args)
           
 
Method Summary
 void run(int testNumber)
           
 void Test01()
          Test behaviour when Entity not in Directory Service; get via DaServer, by typed get.
 void Test02()
          Test behaviour when Entity not in Directory Service; get via DaServer, by getDaValue with parameters.
 void Test03()
          Test behaviour when Entity not in Directory Service; by reference.
 void Test04()
          Test behaviour when DaReference not compiled before get.
 void Test05()
          Test behaviour when names of incorrect syntax are acquired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrTests

public ErrTests(java.lang.String[] args)
Method Detail

run

public void run(int testNumber)

Test01

public void Test01()
Test behaviour when Entity not in Directory Service; get via DaServer, by typed get. Should cause UndefinedNameException to be logged and thrown by Name Server, causing UnableToGetDataException to be logged and thrown by DaServer, which in turn should be caught here.


Test02

public void Test02()
Test behaviour when Entity not in Directory Service; get via DaServer, by getDaValue with parameters. Should cause UndefinedNameException to be logged and thrown by Name Server, causing UnableToGetDataException to be logged (including the parameters given here) and thrown by DaServer, which in turn should be caught here.


Test03

public void Test03()
Test behaviour when Entity not in Directory Service; by reference. Should cause UndefinedNameException to be logged and thrown by Name Server in DaReference constructor, and proceed no further.


Test04

public void Test04()
Test behaviour when DaReference not compiled before get. Should recieve IllegalArgumentException (after it was logged by _DaReference::getDaValue - which recall is executed in this process.


Test05

public void Test05()
Test behaviour when names of incorrect syntax are acquired.