All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  DemultiplexKeyTester
     extends edu.utah.janos.tests.Tester
{
          // Constructors 1
     public DemultiplexKeyTester();

          // Methods 4
     private byte[] generateBadSlice(byte[], int, int);
     private byte[] generateKeyBytes(int);
     private byte[] generateSlice(byte[], int, int);
     public void testUnit() throws TestFailedException;
}




  Constructors

· DemultiplexKeyTester

Summary  |  Top

   public DemultiplexKeyTester() 

Default constructor



  Methods

· generateKeyBytes

Summary  |  Top
   private byte[] generateKeyBytes(int length) 

Generate a random array of bytes for a key

Parameter Description
length The length of the array

Returns:
An array of bytes with random element values


· generateSlice

Summary  |  Top
   private byte[] generateSlice(byte[] key, 
                                int offset, 
                                int length) 

Create an array from a section of another

Parameter Description
key The array to create the slice from
offset The start of the section in key to copy
length The length of the section in key to copy

Returns:
A new byte array that has the values from the section of key specified by the parameters


· generateBadSlice

Summary  |  Top
   private byte[] generateBadSlice(byte[] key, 
                                   int offset, 
                                   int length) 

Create a byte array that won't match the specified subsection of key

Parameter Description
key The byte array to generate the bad slice from
offset The start of the section in key to create the bad slice from
length The length of the section in key

Returns:
A byte array that won't match the section in key specified by the parameters


· 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