DixShtix

com.dixshtix.midi
Class Test

java.lang.Object
  |
  +--com.dixshtix.midi.Test

public class Test
extends java.lang.Object

Test everything in this CLI application.

Version:
0.1
Author:
Richard C. Penner II

Constructor Summary
Test()
           
 
Method Summary
static int BERTest(int num, byte[] BER, int testNumber)
          Test of the variable-length encoding mechanism.
static int EventTest(int num, byte[] midi, int testNumber)
          Attempt to decode the midi bytes into a Event and then reencode the Event into an array of bytes.
static void main(java.lang.String[] args)
          Test engine.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Test

public Test()
Method Detail

EventTest

public static int EventTest(int num,
                            byte[] midi,
                            int testNumber)
Attempt to decode the midi bytes into a Event and then reencode the Event into an array of bytes.
Parameters:
num - The internal Event Type identifier.
midi - A sequence of raw bytes representing the Midi Event.
testNumber - The ordinal number of this test.

BERTest

public static int BERTest(int num,
                          byte[] BER,
                          int testNumber)
Test of the variable-length encoding mechanism.
Parameters:
num - A number in the range 0-0x0fffffff.
BER - A sequence of bytes representing the above number.
testNumber - The ordinal number of this test.

main

public static void main(java.lang.String[] args)
Test engine. Runs many tests.

DixShtix