@Test public void getCustomSkipText_shouldReturnTheCorrectValue() { String customSkipText = mXmlManager.getCustomSkipText(); assertThat(customSkipText).isEqualTo("skip"); }
@Nullable String getCustomSkipText() { String customSkipText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_SKIP_TEXT); if (customSkipText != null && customSkipText.length() <= MAX_SKIP_TEXT_LENGTH) { return customSkipText; } return null; }
VastXmlManager { @Nullable String getCustomSkipText() { String customSkipText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_SKIP_TEXT); if (customSkipText != null && customSkipText.length() <= MAX_SKIP_TEXT_LENGTH) { return customSkipText; } return null; } }
VastXmlManager { @Nullable String getCustomSkipText() { String customSkipText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_SKIP_TEXT); if (customSkipText != null && customSkipText.length() <= MAX_SKIP_TEXT_LENGTH) { return customSkipText; } return null; }  }
VastXmlManager { @Nullable String getCustomSkipText() { String customSkipText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_SKIP_TEXT); if (customSkipText != null && customSkipText.length() <= MAX_SKIP_TEXT_LENGTH) { return customSkipText; } return null; }   }
VastXmlManager { @Nullable String getCustomSkipText() { String customSkipText = XmlUtils.getFirstMatchingStringData(mVastDoc, CUSTOM_SKIP_TEXT); if (customSkipText != null && customSkipText.length() <= MAX_SKIP_TEXT_LENGTH) { return customSkipText; } return null; }    }