@Test public void getSkipOffset_shouldReturnTheCorrectValue() { String skipOffset = mXmlManager.getSkipOffset(); assertThat(skipOffset).isEqualTo("25%"); }
@Nullable String getSkipOffset() { List<Node> linearNodeWrapper = XmlUtils.getNodesWithElementAndAttribute(mVastDoc, LINEAR, SKIP_OFFSET, null); Node linearNode = (linearNodeWrapper.isEmpty()) ? null : linearNodeWrapper.get(0); if (linearNode == null) { return null; } final String skipOffsetString = XmlUtils.getAttributeValue(linearNode, SKIP_OFFSET); if (skipOffsetString == null) { return null; } if (skipOffsetString.trim().isEmpty()) { return null; } return skipOffsetString.trim(); }
VastXmlManager { @Nullable String getSkipOffset() { List<Node> linearNodeWrapper = XmlUtils.getNodesWithElementAndAttribute(mVastDoc, LINEAR, SKIP_OFFSET, null); Node linearNode = (linearNodeWrapper.isEmpty()) ? null : linearNodeWrapper.get(0); if (linearNode == null) { return null; } final String skipOffsetString = XmlUtils.getAttributeValue(linearNode, SKIP_OFFSET); if (skipOffsetString == null) { return null; } if (skipOffsetString.trim().isEmpty()) { return null; } return skipOffsetString.trim(); } }
VastXmlManager { @Nullable String getSkipOffset() { List<Node> linearNodeWrapper = XmlUtils.getNodesWithElementAndAttribute(mVastDoc, LINEAR, SKIP_OFFSET, null); Node linearNode = (linearNodeWrapper.isEmpty()) ? null : linearNodeWrapper.get(0); if (linearNode == null) { return null; } final String skipOffsetString = XmlUtils.getAttributeValue(linearNode, SKIP_OFFSET); if (skipOffsetString == null) { return null; } if (skipOffsetString.trim().isEmpty()) { return null; } return skipOffsetString.trim(); }  }
VastXmlManager { @Nullable String getSkipOffset() { List<Node> linearNodeWrapper = XmlUtils.getNodesWithElementAndAttribute(mVastDoc, LINEAR, SKIP_OFFSET, null); Node linearNode = (linearNodeWrapper.isEmpty()) ? null : linearNodeWrapper.get(0); if (linearNode == null) { return null; } final String skipOffsetString = XmlUtils.getAttributeValue(linearNode, SKIP_OFFSET); if (skipOffsetString == null) { return null; } if (skipOffsetString.trim().isEmpty()) { return null; } return skipOffsetString.trim(); }   }
VastXmlManager { @Nullable String getSkipOffset() { List<Node> linearNodeWrapper = XmlUtils.getNodesWithElementAndAttribute(mVastDoc, LINEAR, SKIP_OFFSET, null); Node linearNode = (linearNodeWrapper.isEmpty()) ? null : linearNodeWrapper.get(0); if (linearNode == null) { return null; } final String skipOffsetString = XmlUtils.getAttributeValue(linearNode, SKIP_OFFSET); if (skipOffsetString == null) { return null; } if (skipOffsetString.trim().isEmpty()) { return null; } return skipOffsetString.trim(); }    }