@Test public void testValidXmlParsing() throws XmlTvParser.XmlTvParseException, FileNotFoundException { String testXmlFile = "xmltv.xml"; InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(testXmlFile); XmlTvParser.TvListing listings = XmlTvParser.parse(inputStream); assertNotNull(listings); assertEquals(4, listings.getChannels().size()); assertEquals(9, listings.getAllPrograms().size()); }
public static TvListing parse(@NonNull InputStream inputStream) throws XmlTvParseException { return parse(inputStream, Xml.newPullParser()); }
XmlTvParser { public static TvListing parse(@NonNull InputStream inputStream) throws XmlTvParseException { return parse(inputStream, Xml.newPullParser()); } }
XmlTvParser { public static TvListing parse(@NonNull InputStream inputStream) throws XmlTvParseException { return parse(inputStream, Xml.newPullParser()); } private  XmlTvParser(); }
XmlTvParser { public static TvListing parse(@NonNull InputStream inputStream) throws XmlTvParseException { return parse(inputStream, Xml.newPullParser()); } private  XmlTvParser(); static TvListing parse(@NonNull InputStream inputStream); }
XmlTvParser { public static TvListing parse(@NonNull InputStream inputStream) throws XmlTvParseException { return parse(inputStream, Xml.newPullParser()); } private  XmlTvParser(); static TvListing parse(@NonNull InputStream inputStream);  }