208209210211212213214215216217
/** * {@inheritDoc} */ public Duration getDuration() throws PlaylistException { try { return new Duration(this.itPlaylist.getDuration()); } catch (PlaylistDeletedException e) { throw new ITObjectDeletedError(this); } }
131415161718192021
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")); }
252627282930313233
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")); }
373839404142434445
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)); }
495051525354555657
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)); }
636465666768697071
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)); }