Package freedb

Examples of freedb.Disc


  public void discsStartsWithBeatles1965()
  {
    Util.enter("QBE: Disc starts with 'The Beatles' and year = 1965");

    Disc d = new Disc();
    d.setDYEAR(1965);
    d.setDTITLE("The Beatles*");

    ObjectSet<Disc> discs = gtm.queryByExample(d);
    Util.snapshot();
    int cnt = 0;
    for (Disc disc : discs) {
View Full Code Here


  public void discsEndsWithBeatles()
  {
    Util.enter("QBE: Disc ends with 'The Beatles'");

    Disc d = new Disc();
    d.setDTITLE("The Beatles*");

    ObjectSet<Disc> discs = gtm.queryByExample(d);
    Util.snapshot();
    int cnt = 0;
    for (Disc disc : discs) {
View Full Code Here

  public void discsContainsBeatles()
  {
    Util.enter("QBE: Disc contains 'Beatles'");

    Disc d = new Disc();
    d.setDTITLE("*Beatles*");

    ObjectSet<Disc> discs = gtm.queryByExample(d);
    Util.snapshot();
    int cnt = 0;
    for (Disc disc : discs) {
View Full Code Here

  }

  public void testDiscsStartsWithBeatles1965()
  {
    int cnt = 0;
    Disc d = new Disc();
    d.setDTITLE("The Beatles*");

    ObjectSet<Disc> discs = gtm.queryByExample(d);
    for (Disc disc : discs) {
      if (!disc.getDTITLE().startsWith("The Beatles"))
        fail("Invalid DTITLE. Expected starts with 'The Beatles' but got " + disc.getDTITLE());
View Full Code Here

  public void testDiscsEndsWithFLAC()
  {
    int cnt = 0;

    Disc d = new Disc();
    d.setDTITLE("*FLAC");
    ObjectSet<Disc> discs = gtm.queryByExample(d);
    for (Disc disc : discs) {
      if (!disc.getDTITLE().endsWith("FLAC"))
        fail("Invalid DTITLE. Expected ends with 'FLAC' but got " + disc.getDTITLE());
      cnt++;
View Full Code Here

  public void testDiscsContainsBeatles()
  {
    int cnt = 0;

    Disc d = new Disc();
    d.setDTITLE("*Beatles*");
    ObjectSet<Disc> discs = gtm.queryByExample(d);
    for (Disc disc : discs) {
      if (!disc.getDTITLE().contains("Beatles"))
        fail("Invalid DTITLE. Expected contains 'Beatles' but got " + disc.getDTITLE());
      cnt++;
View Full Code Here

            FileWriter fw = new FileWriter(discId);
            fw.write(disc.toString());
            fw.close();

            freedbFile = new File(discId);
            db.store(new Disc(freedbFile));

          } catch (Exception ex) {
            logger.severe(ex.getMessage());
          }
View Full Code Here

TOP

Related Classes of freedb.Disc

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.