Package com.github.hakko.musiccabinet.domain.model.music

Examples of com.github.hakko.musiccabinet.domain.model.music.TagInfo


  @Test
  public void resourceFileCorrectlyParsed() throws ApplicationException {
    TagInfoParser parser = new TagInfoParserImpl(
        new ResourceUtil(TAG_INFO_FILE).getInputStream());
   
    TagInfo tagInfo = parser.getTagInfo();
   
    Assert.assertEquals(NAME, tagInfo.getTagName());
    Assert.assertEquals(SUMMARY, tagInfo.getSummary());
    Assert.assertEquals(CONTENT, tagInfo.getContent());
  }
View Full Code Here


  @Override
  public void endElement(String uri, String localName, String qName)
  throws SAXException {
    String chars = characterData.toString();
    if (TAG_NAME.equals(qName)) {
      tagInfo = new TagInfo();
      tagInfo.setTagName(chars);
    } else if (TAG_SUMMARY.equals(qName)) {
      tagInfo.setSummary(chars);
    } else if (TAG_CONTENT.equals(qName)) {
      tagInfo.setContent(chars);
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.music.TagInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.