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
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;
}
private static final int INT_TYPE
private static final int CHAR_ARRAY_TYPE
private static final int BYTE_ARRAY_TYPE
private static final int IN_CHANNEL_TYPE
private static final int ADDRESS_TYPE
private static final int BUFFER_HANDLE_TYPE
private static final int COMM_SPACE_HANDLE_TYPE
private static final int COMM_QUEUE_TYPE
private static final int COMM_MONITOR_TYPE
public CommSpaceElementTester()
Default constructor
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 |
private boolean cmpCharArray(char[] a1,
char[] a2)
Compare an array of characters
private boolean cmpByteArray(byte[] a1,
byte[] a2)
Compare an array of bytes
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