Package com.jitcaforwin.id3.jid3lib

Examples of com.jitcaforwin.id3.jid3lib.TagTestHelpLibrary


    if (file == null || !file.exists()) {
      throw new ID3TagFileNotFoundException(file);
    }

    if (isM4A(file)) {
      throw new ID3M4AException(file);
    }

    try {
      MP3File mp3File = new MP3File(file, NOT_WRITEABLE);
      return getID3Tag(mp3File);
View Full Code Here


      return 0;
    }
    try {
      return Integer.valueOf(year);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

  public int getTrackNumber() {
    try {
      return Integer.valueOf(this.getTrackNumberValues()[0]);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

      if (values.length == 1) {
        return 0;
      }
      return Integer.valueOf(values[1]);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

      return 0;
    }
    try {
      return Integer.valueOf(year);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

  public int getTrackNumber() {
    try {
      return Integer.valueOf(this.getTrackNumberValues()[0]);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

      if (values.length == 1) {
        return 0;
      }
      return Integer.valueOf(values[1]);
    } catch (NumberFormatException e) {
      throw new ID3NumberFormatException(e);
    }
  }
View Full Code Here

    EasyMock.expect(this.infoFromID3TagMock.getYear()).andReturn(2012).once();
    EasyMock.expect(this.infoFromITunesMock.getYear()).andReturn(1990).once();
  }
 
  private void prepareMocksForExceptionAtYear() {
    EasyMock.expect(this.infoFromID3TagMock.getYear()).andThrow(new ID3NumberFormatException(TEST_EXCEPTION_MSG));
    EasyMock.expect(this.infoFromITunesMock.getYear()).andReturn(2012).once();
  }
View Full Code Here

    EasyMock.expect(this.infoFromID3TagMock.getTrackNumber()).andReturn(1).once();
    EasyMock.expect(this.infoFromITunesMock.getTrackNumber()).andReturn(2).once();
  }
 
  private void prepareMocksForExceptionAtTrackNumber() {
    EasyMock.expect(this.infoFromID3TagMock.getTrackNumber()).andThrow(new ID3NumberFormatException(TEST_EXCEPTION_MSG));
    EasyMock.expect(this.infoFromITunesMock.getTrackNumber()).andReturn(1).once();
  }
View Full Code Here

    EasyMock.expect(this.infoFromID3TagMock.getTrackCount()).andReturn(1).once();
    EasyMock.expect(this.infoFromITunesMock.getTrackCount()).andReturn(2).once();
  }
 
  private void prepareMocksForExceptionAtTrackCount() {
    EasyMock.expect(this.infoFromID3TagMock.getTrackCount()).andThrow(new ID3NumberFormatException(TEST_EXCEPTION_MSG));
    EasyMock.expect(this.infoFromITunesMock.getTrackCount()).andReturn(1).once();
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.id3.jid3lib.TagTestHelpLibrary

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.