Package com.jitcaforwin.extended.impl.collections

Examples of com.jitcaforwin.extended.impl.collections.TrackCollectionImpl


      if (searchResult.getCount() > 1) {
        throw new LibrarySearchException("There are multiple tracks with the specified name \"" + name + "\"");
      } else if (searchResult.getCount() == 0) {
        return null; // no track found
      }
      return new TrackCollectionImpl(this, searchResult).getFirst();
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here


   * {@inheritDoc}
   */
  public TrackCollection getTracks(String name) {
    try {
      IITTrackCollection searchResult = this.itLibrary.search(name, ITPlaylistSearchField.SongNames());
      return new TrackCollectionImpl(this, searchResult);
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

    EasyMock.replay(itThrillerMock);
    EasyMock.replay(itBeatItMock);
    EasyMock.replay(itBillyJeanMock);
    EasyMock.replay(itTrackCollectionMock);
   
    TrackCollectionImpl tracks = new TrackCollectionImpl(libraryMock, itTrackCollectionMock);
   
    assertTrue(tracks.get(0) == thrillerMock);
    assertTrue(tracks.get(1) == beatItMock);
    assertTrue(tracks.get(2) == billyJeanMock);
   
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.impl.collections.TrackCollectionImpl

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.