@Test public void testGetMovieListAsObjectBooleanBoolean() { Object[][] arr = ds.getMovieListAsObject(false, false); assertNotNull(arr); arr = ds.getMovieListAsObject(false, true); assertNotNull(arr); arr = ds.getMovieListAsObject(true, false); assertNotNull(arr); arr = ds.getMovieListAsObject(true, true); assertNotNull(arr); }
public Object[][] getMovieListAsObject(boolean rented, boolean available) { ArrayList<Movie> movieArray = null; if (movieList != null) { movieArray = prepareMovieArray(rented, available); } Object[][] movieObjArray = new Object[movieArray.size()][5]; int i = 0; for (Movie m : movieArray) { movieObjArray[i++] = fillInMovieArrayElement(m); } return movieObjArray; }
DataSet { public Object[][] getMovieListAsObject(boolean rented, boolean available) { ArrayList<Movie> movieArray = null; if (movieList != null) { movieArray = prepareMovieArray(rented, available); } Object[][] movieObjArray = new Object[movieArray.size()][5]; int i = 0; for (Movie m : movieArray) { movieObjArray[i++] = fillInMovieArrayElement(m); } return movieObjArray; } }
DataSet { public Object[][] getMovieListAsObject(boolean rented, boolean available) { ArrayList<Movie> movieArray = null; if (movieList != null) { movieArray = prepareMovieArray(rented, available); } Object[][] movieObjArray = new Object[movieArray.size()][5]; int i = 0; for (Movie m : movieArray) { movieObjArray[i++] = fillInMovieArrayElement(m); } return movieObjArray; } DataSet(DateFormat dateFormat); }
DataSet { public Object[][] getMovieListAsObject(boolean rented, boolean available) { ArrayList<Movie> movieArray = null; if (movieList != null) { movieArray = prepareMovieArray(rented, available); } Object[][] movieObjArray = new Object[movieArray.size()][5]; int i = 0; for (Movie m : movieArray) { movieObjArray[i++] = fillInMovieArrayElement(m); } return movieObjArray; } DataSet(DateFormat dateFormat); List<IUser> getUserList(); IUser getUserById(int id); IUser getUserByName(String name); void updateRentalsWithUser(User user); Object[][] getUserListAsObject(); List<Movie> getMovieList(); Object[][] getMovieListAsObject(boolean rented, boolean available); Movie getMovieById(long id); void updateMovie(Movie movie); Object[][] getMovieListAsObject(); List<Rental> getRentalList(); Object[][] getRentalListAsObject(); @Override int hashCode(); @Override boolean equals(Object obj); }
DataSet { public Object[][] getMovieListAsObject(boolean rented, boolean available) { ArrayList<Movie> movieArray = null; if (movieList != null) { movieArray = prepareMovieArray(rented, available); } Object[][] movieObjArray = new Object[movieArray.size()][5]; int i = 0; for (Movie m : movieArray) { movieObjArray[i++] = fillInMovieArrayElement(m); } return movieObjArray; } DataSet(DateFormat dateFormat); List<IUser> getUserList(); IUser getUserById(int id); IUser getUserByName(String name); void updateRentalsWithUser(User user); Object[][] getUserListAsObject(); List<Movie> getMovieList(); Object[][] getMovieListAsObject(boolean rented, boolean available); Movie getMovieById(long id); void updateMovie(Movie movie); Object[][] getMovieListAsObject(); List<Rental> getRentalList(); Object[][] getRentalListAsObject(); @Override int hashCode(); @Override boolean equals(Object obj);  }