All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.tests.nodeos.CommSpaceElementTester
java.lang.Object
   |
   +----edu.utah.janos.tests.Tester
           |
           +----edu.utah.janos.tests.nodeos.CommSpaceElementTester

  Summary

public class  CommSpaceElementTester
     extends edu.utah.janos.tests.Tester
{
          // Fields 9
     private static final int ADDRESS_TYPE;
     private static final int BUFFER_HANDLE_TYPE;
     private static final int BYTE_ARRAY_TYPE;
     private static final int CHAR_ARRAY_TYPE;
     private static final int COMM_MONITOR_TYPE;
     private static final int COMM_QUEUE_TYPE;
     private static final int COMM_SPACE_HANDLE_TYPE;
     private static final int INT_TYPE;
     private static final int IN_CHANNEL_TYPE;

          // Constructors 1
     public CommSpaceElementTester();

          // Methods 4
     private boolean cmpByteArray(byte[], byte[]);
     private boolean cmpCharArray(char[], char[]);
     public void testUnit() throws TestFailedException;
     private void verifyType(CommSpaceElement, int) throws TestFailedException;
}




  Fields

· INT_TYPE

Summary  |  Top

   private static final int INT_TYPE


· CHAR_ARRAY_TYPE

Summary  |  Top
   private static final int CHAR_ARRAY_TYPE


· BYTE_ARRAY_TYPE

Summary  |  Top
   private static final int BYTE_ARRAY_TYPE


· IN_CHANNEL_TYPE

Summary  |  Top
   private static final int IN_CHANNEL_TYPE


· ADDRESS_TYPE

Summary  |  Top
   private static final int ADDRESS_TYPE


· BUFFER_HANDLE_TYPE

Summary  |  Top
   private static final int BUFFER_HANDLE_TYPE


· COMM_SPACE_HANDLE_TYPE

Summary  |  Top
   private static final int COMM_SPACE_HANDLE_TYPE


· COMM_QUEUE_TYPE

Summary  |  Top
   private static final int COMM_QUEUE_TYPE


· COMM_MONITOR_TYPE

Summary  |  Top
   private static final int COMM_MONITOR_TYPE


  Constructors

· CommSpaceElementTester

Summary  |  Top

   public CommSpaceElementTester() 

Default constructor



  Methods

· verifyType

Summary  |  Top
   private void verifyType(CommSpaceElement cse, 
                           int realType)  throws TestFailedException

Verify that a CommSpaceElement has the correct type, we basically just want to make sure that none of the get methods returns a value of a completely different type.

Parameter Description
cse The CommSpaceElement with the value to test
realType One of the above identifiers for indicating the type



· cmpCharArray

Summary  |  Top
   private boolean cmpCharArray(char[] a1, 
                                char[] a2) 

Compare an array of characters



· cmpByteArray

Summary  |  Top
   private boolean cmpByteArray(byte[] a1, 
                                byte[] a2) 

Compare an array of bytes



· testUnit

Summary  |  Top
   public void testUnit()  throws TestFailedException
Overrides:
testUnit in class Tester


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7