Package com.jitcaforwin.extended.api.track

Examples of com.jitcaforwin.extended.api.track.FileOrCDTrack


  @Test
  public void testExtendedTrack() throws ID3TagException {
    File fileMock = EasyMock.createMock(File.class);
    Track trackMock = EasyMock.createMock(Track.class);
    FileOrCDTrack fileTrackMock = EasyMock.createMock(FileOrCDTrack.class);
    EasyMock.expect(trackMock.isFileOrCDTrack()).andReturn(true);
    EasyMock.expect(trackMock.getFileOrCDTrack()).andReturn(fileTrackMock);
    EasyMock.expect(fileTrackMock.getFile()).andReturn(fileMock);
    ITagFactory factoryMock = EasyMock.createMock(ITagFactory.class);
    EasyMock.expect(factoryMock.getTag((File) fileMock)).andReturn(null);
   
    EasyMock.replay(fileMock, factoryMock, trackMock, fileTrackMock);
    ID3TagFactory.setInstance(factoryMock);
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.api.track.FileOrCDTrack

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.