Class FakeApiService
java.lang.Object
com.google.api.core.AbstractApiService
com.google.cloud.pubsublite.internal.testing.FakeApiService
- All Implemented Interfaces:
com.google.api.core.ApiService
public abstract class FakeApiService
extends com.google.api.core.AbstractApiService
Fake Pub/Sub Lite service for testing. Used like:
static abstract class SubscriberFakeService extends FakeApiService implements Subscriber {};
@Spy private SubscriberFakeService wireSubscriber;
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.api.core.ApiService
com.google.api.core.ApiService.Listener, com.google.api.core.ApiService.State -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.api.core.AbstractApiService
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync
-
Constructor Details
-
FakeApiService
public FakeApiService()
-
-
Method Details
-
fail
-
doStart
protected void doStart()- Specified by:
doStartin classcom.google.api.core.AbstractApiService
-
doStop
protected void doStop()- Specified by:
doStopin classcom.google.api.core.AbstractApiService
-