@Test public void whenSystemCaptioningManagerIsEnabled_thenClosedCaptioningIsEnabled() { when(mockCaptioningManager.isEnabled()).thenReturn(true); assertThat(closedCaptionManager.isClosedCaptioningEnabled()).isTrue(); }
@TargetApi(Build.VERSION_CODES.M) @Override public boolean isClosedCaptioningEnabled() { return captioningManager.isEnabled(); }
ClosedCaptionManagerMarshmallow implements CaptionManager { @TargetApi(Build.VERSION_CODES.M) @Override public boolean isClosedCaptioningEnabled() { return captioningManager.isEnabled(); } }
ClosedCaptionManagerMarshmallow implements CaptionManager { @TargetApi(Build.VERSION_CODES.M) @Override public boolean isClosedCaptioningEnabled() { return captioningManager.isEnabled(); } ClosedCaptionManagerMarshmallow(CaptioningManager captioningManager); }
ClosedCaptionManagerMarshmallow implements CaptionManager { @TargetApi(Build.VERSION_CODES.M) @Override public boolean isClosedCaptioningEnabled() { return captioningManager.isEnabled(); } ClosedCaptionManagerMarshmallow(CaptioningManager captioningManager); @TargetApi(Build.VERSION_CODES.M) static CaptionManager newInstance(Context context); @TargetApi(Build.VERSION_CODES.M) @Override boolean isClosedCaptioningEnabled(); }
ClosedCaptionManagerMarshmallow implements CaptionManager { @TargetApi(Build.VERSION_CODES.M) @Override public boolean isClosedCaptioningEnabled() { return captioningManager.isEnabled(); } ClosedCaptionManagerMarshmallow(CaptioningManager captioningManager); @TargetApi(Build.VERSION_CODES.M) static CaptionManager newInstance(Context context); @TargetApi(Build.VERSION_CODES.M) @Override boolean isClosedCaptioningEnabled();  }