org.openuat.channel.oob.test
Class ButtonChannelTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openuat.channel.oob.test.ButtonChannelTest
All Implemented Interfaces:
junit.framework.Test

public class ButtonChannelTest
extends junit.framework.TestCase

Test case for ButtonChannel.

Version:
1.0
Author:
Lukas Huser

Constructor Summary
ButtonChannelTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testBytesToIntervals1()
          Test method for ButtonChannel.bytesToIntervals(byte[], int, int, int).
 void testIdealChannel()
          Test method for ButtonChannel.bytesToIntervals(byte[], int, int, int).
 void testIntervalsToBytes1()
          Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
 void testIntervalsToBytes2()
          Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
 void testIntervalsToBytes3()
          Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
 void testIntervalsToBytes4()
          Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
 
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
 

Constructor Detail

ButtonChannelTest

public ButtonChannelTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testIntervalsToBytes1

public void testIntervalsToBytes1()
Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
Simulate button to button channel, with clean intervals (no rounding required)


testIntervalsToBytes2

public void testIntervalsToBytes2()
Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
Simulate button to button channel, intervals must be rounded


testIntervalsToBytes3

public void testIntervalsToBytes3()
Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
Simulate a transfer channel, intervals must be rounded.


testIntervalsToBytes4

public void testIntervalsToBytes4()
Test method for ButtonChannel.intervalsToBytes(org.openuat.util.IntervalList, int, int, boolean, boolean).
Simulate a transfer channel, intervals must be rounded.


testBytesToIntervals1

public void testBytesToIntervals1()
Test method for ButtonChannel.bytesToIntervals(byte[], int, int, int).
Simulate a transfer channel.


testIdealChannel

public void testIdealChannel()
Test method for ButtonChannel.bytesToIntervals(byte[], int, int, int).
Simulate an ideal transfer channel (no delays, no rounding required).



2005-2009, Rene Mayrhofer.