@Test public void testInputStreamAbortedIsCalled(){ SdkFilterInputStream in = mock(SdkFilterInputStream.class); SdkFilterInputStream sdkFilterInputStream = spy(new SdkFilterInputStream(in)); sdkFilterInputStream.abort(); verify(in, times(1)).abort(); }
public void abort() { if (in instanceof SdkFilterInputStream) { ((SdkFilterInputStream) in).abort(); } aborted = true; }
SdkFilterInputStream extends FilterInputStream implements
        MetricAware, Releasable { public void abort() { if (in instanceof SdkFilterInputStream) { ((SdkFilterInputStream) in).abort(); } aborted = true; } }
SdkFilterInputStream extends FilterInputStream implements
        MetricAware, Releasable { public void abort() { if (in instanceof SdkFilterInputStream) { ((SdkFilterInputStream) in).abort(); } aborted = true; } protected  SdkFilterInputStream(InputStream in); }
SdkFilterInputStream extends FilterInputStream implements
        MetricAware, Releasable { public void abort() { if (in instanceof SdkFilterInputStream) { ((SdkFilterInputStream) in).abort(); } aborted = true; } protected  SdkFilterInputStream(InputStream in); @SdkProtectedApi InputStream getDelegateStream(); @Override boolean isMetricActivated(); void abort(); @Override int read(); @Override int read(byte b[], int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override synchronized void mark(int readlimit); @Override synchronized void reset(); @Override boolean markSupported(); @Override void release(); }
SdkFilterInputStream extends FilterInputStream implements
        MetricAware, Releasable { public void abort() { if (in instanceof SdkFilterInputStream) { ((SdkFilterInputStream) in).abort(); } aborted = true; } protected  SdkFilterInputStream(InputStream in); @SdkProtectedApi InputStream getDelegateStream(); @Override boolean isMetricActivated(); void abort(); @Override int read(); @Override int read(byte b[], int off, int len); @Override long skip(long n); @Override int available(); @Override void close(); @Override synchronized void mark(int readlimit); @Override synchronized void reset(); @Override boolean markSupported(); @Override void release();  }