@Test public void closeTest() throws Exception { BinaryLogSink sink = mock(BinaryLogSink.class); BinaryLogProviderImpl log = new BinaryLogProviderImpl(sink, "*"); verify(sink, never()).close(); log.close(); verify(sink).close(); }
@Override public void close() throws IOException { sink.close(); }
BinaryLogProviderImpl extends BinaryLogProvider { @Override public void close() throws IOException { sink.close(); } }
BinaryLogProviderImpl extends BinaryLogProvider { @Override public void close() throws IOException { sink.close(); } BinaryLogProviderImpl(); @Deprecated  BinaryLogProviderImpl(BinaryLogSink sink);  BinaryLogProviderImpl(BinaryLogSink sink, String configStr); }
BinaryLogProviderImpl extends BinaryLogProvider { @Override public void close() throws IOException { sink.close(); } BinaryLogProviderImpl(); @Deprecated  BinaryLogProviderImpl(BinaryLogSink sink);  BinaryLogProviderImpl(BinaryLogSink sink, String configStr); @Nullable @Override ServerInterceptor getServerInterceptor(String fullMethodName); @Nullable @Override ClientInterceptor getClientInterceptor(
      String fullMethodName, CallOptions callOptions); @Override void close(); }
BinaryLogProviderImpl extends BinaryLogProvider { @Override public void close() throws IOException { sink.close(); } BinaryLogProviderImpl(); @Deprecated  BinaryLogProviderImpl(BinaryLogSink sink);  BinaryLogProviderImpl(BinaryLogSink sink, String configStr); @Nullable @Override ServerInterceptor getServerInterceptor(String fullMethodName); @Nullable @Override ClientInterceptor getClientInterceptor(
      String fullMethodName, CallOptions callOptions); @Override void close();  }