com.xtremelabs.robolectric.shadows
Class ShadowService

java.lang.Object
  extended by com.xtremelabs.robolectric.shadows.ShadowContext
      extended by com.xtremelabs.robolectric.shadows.ShadowContextWrapper
          extended by com.xtremelabs.robolectric.shadows.ShadowService

@Implements(value=android.app.Service.class)
public class ShadowService
extends ShadowContextWrapper


Constructor Summary
ShadowService()
           
 
Method Summary
 void assertNoBroadcastListenersRegistered()
           
 android.app.Application getApplication()
           
 android.content.Context getApplicationContext()
           
 void onDestroy()
           
 
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowContextWrapper
__constructor__, getContentResolver, getNextStartedActivity, getNextStartedService, getPackageManager, getPackageName, getResources, getSharedPreferences, getSystemService, peekNextStartedActivity, peekNextStartedService, registerReceiver, sendBroadcast, startActivity, startService, unregisterReceiver
 
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowContext
getResourceLoader, getString, getString, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowService

public ShadowService()
Method Detail

getApplication

@Implementation
public final android.app.Application getApplication()

getApplicationContext

@Implementation
public android.content.Context getApplicationContext()
Overrides:
getApplicationContext in class ShadowContextWrapper

onDestroy

@Implementation
public void onDestroy()

assertNoBroadcastListenersRegistered

public void assertNoBroadcastListenersRegistered()