de.akquinet.android.marvintest
Class ServiceBindingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by android.test.InstrumentationTestCase
              extended by de.akquinet.android.marvin.AndroidTestCase
                  extended by de.akquinet.android.marvintest.ServiceBindingTest
All Implemented Interfaces:
junit.framework.Test

public class ServiceBindingTest
extends AndroidTestCase


Field Summary
 
Fields inherited from class de.akquinet.android.marvin.AndroidTestCase
activityMonitor
 
Constructor Summary
ServiceBindingTest()
           
 
Method Summary
 void testBindToExistingService()
          See if we can synchronously bind to a service.
 void testBindToNonExistingService()
          Binding to a non-existing service (this one is not defined in the manifest) should fail.
 
Methods inherited from class de.akquinet.android.marvin.AndroidTestCase
activity, assertThat, assertThat, bindService, bindService, click, finishOnTearDown, getMostRecentlyStartedActivity, getStartedActivities, getString, key, keyDownUp, leaveRunningAfterTearDown, sendString, setUp, sleep, startActivity, startActivity, tearDown, waitForActivity, waitForCondition, waitForCondition, waitForIdle, waitForView
 
Methods inherited from class android.test.InstrumentationTestCase
getInstrumentation, injectInsrumentation, launchActivity, launchActivityWithIntent, runTest, runTestOnUiThread, sendKeys, sendKeys, sendRepeatedKeys
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceBindingTest

public ServiceBindingTest()
Method Detail

testBindToExistingService

public void testBindToExistingService()
                               throws TimeoutException
See if we can synchronously bind to a service.

Throws:
TimeoutException

testBindToNonExistingService

public void testBindToNonExistingService()
Binding to a non-existing service (this one is not defined in the manifest) should fail.



Copyright © 2010-2011 akquinet AG. All Rights Reserved.