Package com.jitcaforwin.basic.api

Examples of com.jitcaforwin.basic.api.IITArtworkCollection


  @Test
  public void testArtworkCollectionInit() throws JitcaException{
    final String ARTWORK1 = "Artwork 1";
    final String ARTWORK2 = "Artwork 2";
    final String ARTWORK3 = "Artwork 3";
    IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
    IITArtwork itArtwork1 = new ITArtworkMock(ARTWORK1);
    IITArtwork itArtwork2 = new ITArtworkMock(ARTWORK2);
    IITArtwork itArtwork3 = new ITArtworkMock(ARTWORK3);
    ((ITArtworkCollectionMock) itArtworkCollection).add(itArtwork1, 0);
    ((ITArtworkCollectionMock) itArtworkCollection).add(itArtwork2, 1);
View Full Code Here


  }

  @Test
  public void testArtworkCollectionAddFromFile() throws JitcaException{
    final String ARTWORK = "C:\\Nothing";
    IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
    TrackImpl track = TrackImpl.create(libraryMock, new ITTrackMock(itArtworkCollection));
    ArtworkCollectionImpl artworkCollection = new ArtworkCollectionImpl(track);
    assertTrue(artworkCollection.size() == 0);

    ArtworkImpl artwork = artworkCollection.add(new File(ARTWORK));
View Full Code Here

  }

  @Test
  public void testArtworkCollectionAddFromArtwork() throws JitcaException{
    final String ARTWORK = "C:\\Nothing";
    IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
    TrackImpl track = TrackImpl.create(libraryMock, new ITTrackMock(itArtworkCollection));
    ArtworkCollectionImpl artworkCollection = new ArtworkCollectionImpl(track);
    assertTrue(artworkCollection.size() == 0);

    ArtworkImpl artwork1 = artworkCollection.add(new File(ARTWORK));
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.IITArtworkCollection

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.