Package de.kunysch.localimdb

Examples of de.kunysch.localimdb.RatingsParser


      pw.println("");
      pw.println("BAR RATINGS REPORT");
      pw.println("      1111111111 1234567   1.0  Also not parsed (0000)");
      pw.close();
      final MoviesBuilder builder = new MoviesBuilder();
      final RatingsParser parser = new TempfileRatingsParser(file, builder);
      final int count = parser.fetch(file.getParentFile().toURL(), null);
      assertEquals(3, count);
      final Movies movies = builder.getMovies();
      assertEquals(3, movies.getTitleCount());
      assertEquals(3, movies.getMovieCount());
      assertEquals(1, movies.findByTitle("one").length);
View Full Code Here


      if (null != file) file.delete();
    }
  }

  public final void testRatingsParser() {
    RatingsParser parser = new RatingsParser(new MoviesBuilder());
    assertEquals("ratings.list.gz", parser.getFilename());
  }
View Full Code Here

TOP

Related Classes of de.kunysch.localimdb.RatingsParser

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.