public void testAddBooks() {
   try {
     File inputFile = new File("testAddBooks.txt");
     FileReader fileReader = new FileReader(inputFile);
     BufferedReader bufferedReader = new BufferedReader(fileReader);
     newCatalogue.addBooks(bufferedReader);
     newCatalogue.viewCatalogueByTitle();
     System.out.println();
     newCatalogue.viewCatalogueByAuthor();
     System.out.println();
     Iterator itr = newCatalogue.iterator();
     while (itr.hasNext()) {
       Book tmpBook = (Book) itr.next();
       System.out.println(tmpBook.getQuantity());
     }
   } catch (IOException e) {
     System.out.println(e.getMessage());
   }
 }
 public void testAddBooksWithoutView() {
   try {
     File inputFile = new File("testAddBooks.txt");
     FileReader fileReader = new FileReader(inputFile);
     BufferedReader bufferedReader = new BufferedReader(fileReader);
     newCatalogue.addBooks(bufferedReader);
   } catch (IOException e) {
     System.out.println(e.getMessage());
   }
 }
 public void testSearchAuthorByLetter() {
   testAddBooksWithoutView();
   System.out.println(newCatalogue.searchAuthorByLetter('S'));
   System.out.println(newCatalogue.searchAuthorByLetter('l'));
 }
 public void testSearchInAuthor() {
   testAddBooksWithoutView();
   System.out.println(newCatalogue.searchInAuthor("arthur conan doyle"));
   System.out.println(newCatalogue.searchInAuthor("dickens"));
 }
 public void testSearchInTitle() {
   testAddBooksWithoutView();
   System.out.println(newCatalogue.searchInTitle("holmes"));
   System.out.println(newCatalogue.searchInTitle("magic garden"));
 }
 public void testSearchForIsbn() {
   testAddBooksWithoutView();
   assertEquals(null, newCatalogue.searchForIsbn("2346"));
   assertNotNull(newCatalogue.searchForIsbn("2345"));
   System.out.println(newCatalogue.searchForIsbn("2345"));
 }
 public void testViewCatalogueByAuthor() {
   newCatalogue.viewCatalogueByAuthor();
   System.out.println();
 }
 public void testViewCatalogueByTitle() {
   newCatalogue.viewCatalogueByTitle();
   System.out.println();
 }