public Otr build(boolean withChilds) { Otr xml = new Otr(); if (withChilds) { xml.getEpisode().add(TestXmlEpisode.create(false)); xml.getEpisode().add(TestXmlEpisode.create(false)); } return xml; }
public Query build(boolean withChilds) { Query xml = new Query(); if (withChilds) { xml.setVideoFile(TestXmlVideoFile.create(false)); xml.setSeries(TestXmlSeries.create(false)); xml.setSeason(TestXmlSeason.create(false)); xml.setEpisode(TestXmlEpisode.create(false)); xml.setImage(TestXmlImage.create(false)); xml.setMovie(TestXmlMovie.create(false)); } return xml; }