Package de.kunysch.localimdb

Examples of de.kunysch.localimdb.MoviesBuilder


  }

  MoviesBuilder builder;
 
  protected void setUp() throws Exception {
    builder = new MoviesBuilder();
  }
View Full Code Here


      pw.println("      0262000..0     333   3.3  Third Title, A (3333)");
      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);
      assertEquals(1, movies.findByTitle("ten").length);
      assertEquals(1, movies.findByTitle("a third title").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.MoviesBuilder

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.