Package com.jitcaforwin.extended.api.track

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


  /**
   * {@inheritDoc}
   */
  public Duration getDuration() throws PlaylistException {
    try {
      return new Duration(this.itPlaylist.getDuration());
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here


    int days = 5;
    int hours = 14;
    int minutes = 1;
    int seconds = 30;

    Duration duration = new Duration(this.calculateSeconds(days, hours,
        minutes, seconds));
    assertTrue(duration.toString().equals("5:14:01:30"));
  }
View Full Code Here

    int days = 35;
    int hours = 0;
    int minutes = 41;
    int seconds = 1;

    Duration duration = new Duration(this.calculateSeconds(days, hours,
        minutes, seconds));
    assertTrue(duration.toString().equals("35:00:41:01"));
  }
View Full Code Here

    int days = 35;
    int hours = 12;
    int minutes = 41;
    int seconds = 1;

    Duration duration = new Duration(this.calculateSeconds(days, hours,
        minutes, seconds));
    assertTrue(equal(duration.getDays(),35.5f));
  }
View Full Code Here

    int days = 0;
    int hours = 12;
    int minutes = 41;
    int seconds = 1;

    Duration duration = new Duration(this.calculateSeconds(days, hours,
        minutes, seconds));
    assertTrue(equal(duration.getHours(), 12.7f));
  }
View Full Code Here

    int days = 0;
    int hours = 0;
    int minutes = 41;
    int seconds = 45;

    Duration duration = new Duration(this.calculateSeconds(days, hours,
        minutes, seconds));
    assertTrue(equal(duration.getMinutes(),41.75f));
  }
View Full Code Here

TOP

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

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.