@Test public void destroy_shouldSetTheCorrectStateVariable() { subject = new BaseWebView(context); assertThat(subject.mIsDestroyed).isFalse(); subject.destroy(); assertThat(subject.mIsDestroyed).isTrue(); }
@Override public void destroy() { mIsDestroyed = true; Views.removeFromParent(this); removeAllViews(); super.destroy(); }
BaseWebView extends WebView { @Override public void destroy() { mIsDestroyed = true; Views.removeFromParent(this); removeAllViews(); super.destroy(); } }
BaseWebView extends WebView { @Override public void destroy() { mIsDestroyed = true; Views.removeFromParent(this); removeAllViews(); super.destroy(); } BaseWebView(Context context); }
BaseWebView extends WebView { @Override public void destroy() { mIsDestroyed = true; Views.removeFromParent(this); removeAllViews(); super.destroy(); } BaseWebView(Context context); @Override void destroy(); }
BaseWebView extends WebView { @Override public void destroy() { mIsDestroyed = true; Views.removeFromParent(this); removeAllViews(); super.destroy(); } BaseWebView(Context context); @Override void destroy();  }