Examples of Movie


Examples of org.neo4j.cineasts.domain.Movie

    @Autowired
    CineastsRepository repository;

    @Test
    public void testGetMovie() throws Exception {
        Movie movie = new Movie("1", "Test-Movie").persist();
        Movie found = repository.getMovie("1");
        assertEquals("movie found by id", movie, found);

    }
View Full Code Here

Examples of org.neo4j.examples.imdb.domain.Movie

    @Transactional
    public void getModel( final Object command, final Map<String,Object> model )
        throws ServletException
    {
        final String title = ((MovieForm) command).getTitle();
        final Movie movie = imdbService.getMovie( title );
        populateModel( model, movie );
    }
View Full Code Here

Examples of org.ops4j.pax.exam.sample2.model.Movie

    @PersistenceContext
    private EntityManager em;

    public Movie findById(int id) {
        Movie movie = em.find(Movie.class, id);
        movie.getActors();
        movie.getRoles();
        movie.getRatings();
        return movie;
    }
View Full Code Here

Examples of org.pdfclown.documents.interaction.annotations.Movie

    if(annotationObject == null)
    {
      annotationObject = getBaseDataObject().get(PdfName.T);
      throw new NotImplementedException("No by-title movie annotation support currently: we have to implement a hook to the page of the referenced movie to get it from its annotations collection.");
    }
    return new Movie(annotationObject, getContainer());
  }
View Full Code Here

Examples of org.superbiz.altdd.Movie

    public void test() throws Exception {

        userTransaction.begin();

        try {
            entityManager.persist(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
            entityManager.persist(new Movie("Joel Coen", "Fargo", 1996));
            entityManager.persist(new Movie("Joel Coen", "The Big Lebowski", 1998));

            List<Movie> list = movies.getMovies();
            assertEquals("List.size()", 3, list.size());

            for (Movie movie : list) {
View Full Code Here

Examples of org.superbiz.injection.h3jpa.Movie

        Context context = new InitialContext(p);

        Movies movies = (Movies) context.lookup("MoviesLocal");

        movies.addMovie(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
        movies.addMovie(new Movie("Joel Coen", "Fargo", 1996));
        movies.addMovie(new Movie("Joel Coen", "The Big Lebowski", 1998));

        List<Movie> list = movies.getMovies();
        assertEquals("List.size()", 3, list.size());

        for (Movie movie : list) {
View Full Code Here

Examples of org.superbiz.injection.jpa.Movie

        Context context = new InitialContext(p);

        Movies movies = (Movies) context.lookup("MoviesLocal");

        movies.addMovie(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
        movies.addMovie(new Movie("Joel Coen", "Fargo", 1996));
        movies.addMovie(new Movie("Joel Coen", "The Big Lebowski", 1998));

        List<Movie> list = movies.getMovies();
        assertEquals("List.size()", 3, list.size());

        for (Movie movie : list) {
View Full Code Here

Examples of org.superbiz.jpa.enums.Movie

        EJBContainer container = EJBContainer.createEJBContainer(p);
        final Context context = container.getContext();

        final Movies movies = (Movies) context.lookup("java:global/jpa-enumerated/Movies");

        movies.addMovie(new Movie("James Frawley", "The Muppet Movie", 1979, Rating.G));
        movies.addMovie(new Movie("Jim Henson", "The Great Muppet Caper", 1981, Rating.G));
        movies.addMovie(new Movie("Frank Oz", "The Muppets Take Manhattan", 1984, Rating.G));
        movies.addMovie(new Movie("James Bobin", "The Muppets", 2011, Rating.PG));

        assertEquals("List.size()", 4, movies.getMovies().size());

        assertEquals("List.size()", 3, movies.findByRating(Rating.G).size());
View Full Code Here

Examples of org.superbiz.model.Movie

        Context context = new InitialContext(p);

        Movies movies = (Movies) context.lookup("MoviesLocal");

        movies.addMovie(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
        movies.addMovie(new Movie("Joel Coen", "Fargo", 1996));
        movies.addMovie(new Movie("Joel Coen", "The Big Lebowski", 1998));

        List<Movie> list = movies.getMovies();
        assertEquals("List.size()", 3, list.size());

        for (Movie movie : list) {
View Full Code Here

Examples of org.superbiz.moviefun.Movie

public class ExampleDataProducer {
    @Produces
    @Examples
    public List<Movie> createSampleMovies() {
        final List<Movie> sampleMovies = new ArrayList<Movie>();
        sampleMovies.add(new Movie("Wedding Crashers", "David Dobkin", "Comedy", 7, 2005));
        sampleMovies.add(new Movie("Starsky & Hutch", "Todd Phillips", "Action", 6, 2004));
        sampleMovies.add(new Movie("Shanghai Knights", "David Dobkin", "Action", 6, 2003));
        sampleMovies.add(new Movie("I-Spy", "Betty Thomas", "Adventure", 5, 2002));
        sampleMovies.add(new Movie("The Royal Tenenbaums", "Wes Anderson", "Comedy", 8, 2001));
        sampleMovies.add(new Movie("Zoolander", "Ben Stiller", "Comedy", 6, 2001));
        sampleMovies.add(new Movie("Shanghai Noon", "Tom Dey", "Comedy", 7, 2000));
        return sampleMovies;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.