use of org.musicbrainz.android.api.webservice.ResponseParser in project musicbrainz-android by jdamcd.
the class LabelLookupTest method doParsing.
@Before
public void doParsing() throws IOException {
InputStream stream = getFileStream(LABEL_LOOKUP_FIXTURE);
assertNotNull(stream);
label = new ResponseParser().parseLabel(stream);
stream.close();
}
use of org.musicbrainz.android.api.webservice.ResponseParser in project musicbrainz-android by jdamcd.
the class LabelSearchTest method doParsing.
@Before
public void doParsing() throws IOException {
InputStream stream = getFileStream(LABEL_SEARCH_FIXTURE);
assertNotNull(stream);
labels = new ResponseParser().parseLabelSearch(stream);
stream.close();
}
use of org.musicbrainz.android.api.webservice.ResponseParser in project musicbrainz-android by jdamcd.
the class RatingLookupTest method parseRating.
private float parseRating(String xmlFile) throws IOException {
InputStream stream = getFileStream(xmlFile);
assertNotNull(stream);
ResponseParser responseParser = new ResponseParser();
float rating = responseParser.parseRatingLookup(stream);
stream.close();
return rating;
}
Aggregations