@Test public void testReverseMap() { doReturn(20).when(cinemaEntityMock).getCinemaId(); doReturn("Avengers").when(cinemaEntityMock).getTitle(); doReturn("Avengers:description").when(cinemaEntityMock).getDescription(); doReturn("Stan Lee").when(cinemaEntityMock).getDirectorName(); doReturn("2004.12.03").when(cinemaEntityMock).getReleaseDate(); final Cinema cinema = mapper.reverseMap(cinemaEntityMock); assertThat(cinema.getId() , is(20)); assertThat(cinema.getTitle() , is("Avengers")); assertThat(cinema.getDescription() , is("Avengers:description")); assertThat(cinema.getDirectorName() , is("Stan Lee")); assertThat(cinema.getReleaseDate() , is("2004.12.03")); }
@Override public Cinema reverseMap(final CinemaEntity cinemaEntity) { final Cinema cinema = new Cinema(); fillCinema(cinema , cinemaEntity); return cinema; }
CinemaEntityToCinema extends Mapper<Cinema, CinemaEntity> { @Override public Cinema reverseMap(final CinemaEntity cinemaEntity) { final Cinema cinema = new Cinema(); fillCinema(cinema , cinemaEntity); return cinema; } }
CinemaEntityToCinema extends Mapper<Cinema, CinemaEntity> { @Override public Cinema reverseMap(final CinemaEntity cinemaEntity) { final Cinema cinema = new Cinema(); fillCinema(cinema , cinemaEntity); return cinema; }  }
CinemaEntityToCinema extends Mapper<Cinema, CinemaEntity> { @Override public Cinema reverseMap(final CinemaEntity cinemaEntity) { final Cinema cinema = new Cinema(); fillCinema(cinema , cinemaEntity); return cinema; }  @Override CinemaEntity map(final Cinema cinema); @Override Cinema reverseMap(final CinemaEntity cinemaEntity); Cinema mapCinemaDetail(CinemaEntity cinemaEntity , List<ActorEntity> actorEntities); List<ActorEntity> mapActors(List<Actor> actors); }
CinemaEntityToCinema extends Mapper<Cinema, CinemaEntity> { @Override public Cinema reverseMap(final CinemaEntity cinemaEntity) { final Cinema cinema = new Cinema(); fillCinema(cinema , cinemaEntity); return cinema; }  @Override CinemaEntity map(final Cinema cinema); @Override Cinema reverseMap(final CinemaEntity cinemaEntity); Cinema mapCinemaDetail(CinemaEntity cinemaEntity , List<ActorEntity> actorEntities); List<ActorEntity> mapActors(List<Actor> actors);  }