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;
-
-
Constructor Summary
Constructors Constructor Description FakeApiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
void
fail(Throwable t)
-
-
-
Method Detail
-
fail
public void fail(Throwable t)
-
doStart
protected void doStart()
- Specified by:
doStart
in classcom.google.api.core.AbstractApiService
-
doStop
protected void doStop()
- Specified by:
doStop
in classcom.google.api.core.AbstractApiService
-
-