@Test public void callbackDisconnected() { mSource.disconnected(); verify(mCallback).sourceDisconnected(mSource); }
protected void disconnected() { if(mCallback != null) { mCallback.sourceDisconnected(this); } }
BaseVehicleDataSource implements VehicleDataSource { protected void disconnected() { if(mCallback != null) { mCallback.sourceDisconnected(this); } } }
BaseVehicleDataSource implements VehicleDataSource { protected void disconnected() { if(mCallback != null) { mCallback.sourceDisconnected(this); } } BaseVehicleDataSource();  BaseVehicleDataSource(SourceCallback callback); }
BaseVehicleDataSource implements VehicleDataSource { protected void disconnected() { if(mCallback != null) { mCallback.sourceDisconnected(this); } } BaseVehicleDataSource();  BaseVehicleDataSource(SourceCallback callback); @Override void setCallback(SourceCallback callback); abstract boolean isConnected(); @Override void stop(); @Override void onPipelineActivated(); @Override void onPipelineDeactivated(); SourceCallback getCallback(); }
BaseVehicleDataSource implements VehicleDataSource { protected void disconnected() { if(mCallback != null) { mCallback.sourceDisconnected(this); } } BaseVehicleDataSource();  BaseVehicleDataSource(SourceCallback callback); @Override void setCallback(SourceCallback callback); abstract boolean isConnected(); @Override void stop(); @Override void onPipelineActivated(); @Override void onPipelineDeactivated(); SourceCallback getCallback();  }