OCSEPICS
Class JunitOCSEPICS

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by OCSEPICS.JunitOCSEPICS
All Implemented Interfaces:
junit.framework.Test

public class JunitOCSEPICS
extends junit.framework.TestCase

This class is a Junit test frame which tests the functionality of the classes which comprise the OCSEPICS package When run it will perform a sequence of tests which will verify the correct operation of the classs. In order to run these tests, the user must use the command ant test from the source directory which contains this test class

Version:
$Id: JunitOCSEPICS.java,v 1.1.1.1 2006/02/07 14:11:11 cb Exp $

Author:
Craige Bevil

Field Summary
(package private)  MessageHandler messageHandler
          This will be used for syslog reporting
(package private)  OCSCORBAHelper OCSCorba
          This will be used to perform a lot of the donkey work associated with setting up a CORBA server.
 iParameterNoticeBoard.ParameterNoticeBoardSupplier parameterNoticeBoard
          A CORBA reference to the parameter noticeboard
(package private)  ProcessVariable processVariable
          This is a EPICS process variable that we are going to test
(package private)  StatusVariable statusVariable
          A StatusVariable which will be used for testing
 
Constructor Summary
JunitOCSEPICS()
           
 
Method Summary
static void main(java.lang.String[] argv)
           main method which will run the tests of the parameter
protected  void setUp()
          This class will be called to set up the test unit ahead of the tests being executed.
static junit.framework.TestSuite suite()
          Establish the test suite in this class, it goes through the class extracting the test methods and then building a Junit test suite which will be used to perform the tests.
protected  void tearDown()
          This method is called when the tests are finished and we close down the ORB so that we can run the tests again.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameterNoticeBoard

public iParameterNoticeBoard.ParameterNoticeBoardSupplier parameterNoticeBoard
A CORBA reference to the parameter noticeboard


OCSCorba

OCSCORBAHelper OCSCorba
This will be used to perform a lot of the donkey work associated with setting up a CORBA server.


statusVariable

StatusVariable statusVariable
A StatusVariable which will be used for testing


processVariable

ProcessVariable processVariable
This is a EPICS process variable that we are going to test


messageHandler

MessageHandler messageHandler
This will be used for syslog reporting

Constructor Detail

JunitOCSEPICS

public JunitOCSEPICS()
Method Detail

tearDown

protected void tearDown()
This method is called when the tests are finished and we close down the ORB so that we can run the tests again.

Overrides:
tearDown in class junit.framework.TestCase

setUp

protected void setUp()
This class will be called to set up the test unit ahead of the tests being executed. This will set up all of the CORBA connetion to the parameter noticeboard.

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.TestSuite suite()
Establish the test suite in this class, it goes through the class extracting the test methods and then building a Junit test suite which will be used to perform the tests. This class will be called automatically by Junit

Returns:
TestSuite The list of test methods in this class

main

public static void main(java.lang.String[] argv)
main method which will run the tests of the parameter

Parameters:
argv - Command line arguments. The method starts up the Junit test GUI which will be used to test the software package.