Package com.github.hakko.musiccabinet.domain.model.aggr

Examples of com.github.hakko.musiccabinet.domain.model.aggr.LibraryStatistics


    File f1 = getFile("A", "A", "t1", 829, 54);
    File f2 = getFile("A", "B", "t2"29, 42);
    File f3 = getFile("B", "C", "t3", 823, 30);

    submitFile(additionDao, f1);
    assertEquals(new LibraryStatistics(1, 1, 1, 829, 54), getStats());

    submitFile(additionDao, f2);
    assertEquals(new LibraryStatistics(1, 2, 2, 829+29, 54+42), getStats());

    submitFile(additionDao, f3);
    assertEquals(new LibraryStatistics(2, 3, 3, 829+29+823, 54+42+30), getStats());
  }
View Full Code Here


        int artistCount = rs.getInt(1);
        int albumCount = rs.getInt(2);
        int trackCount = rs.getInt(3);
        long bytes = rs.getLong(4);
        int seconds = rs.getInt(5);
        return new LibraryStatistics(artistCount, albumCount,
            trackCount, bytes, seconds);
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.domain.model.aggr.LibraryStatistics

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.