org.deacon.test
Class DeaconServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.deacon.test.DeaconServiceTest
All Implemented Interfaces:
junit.framework.Test, DeaconObserver

public class DeaconServiceTest
extends junit.framework.TestCase
implements DeaconObserver

Unit tests for the DeaconService class.

NOTE: The JUnit library must have higher precedence on the classpath than android.jar, or all tests will fail with a "Stub!" exception.

Author:
dave

Constructor Summary
DeaconServiceTest()
           
 
Method Summary
 void onError(DeaconError err)
          Overridden methods from DeaconObserver interface These are necessary in order for the test to receive Deacon events.
 void onPush(DeaconResponse response)
           
 void onReconnect()
           
 void testCatchUpTimeOut()
           
 void testJoinChannel()
           
 void testLeaveChannel()
           
 void testParse()
           
 void testStart()
           
 void testStop()
           
 void testToString()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeaconServiceTest

public DeaconServiceTest()
Method Detail

testToString

public void testToString()

testJoinChannel

public void testJoinChannel()

testLeaveChannel

public void testLeaveChannel()

testCatchUpTimeOut

public void testCatchUpTimeOut()

testParse

public void testParse()

testStart

public void testStart()

testStop

public void testStop()

onError

public void onError(DeaconError err)
Overridden methods from DeaconObserver interface These are necessary in order for the test to receive Deacon events.

Specified by:
onError in interface DeaconObserver

onPush

public void onPush(DeaconResponse response)
Specified by:
onPush in interface DeaconObserver

onReconnect

public void onReconnect()
Specified by:
onReconnect in interface DeaconObserver