Hi Carey Brown Salil Wadnerkar,
Thanks for taking the time. I had already looked and read many tutorials and had come out by myself with "Harry Potter" as the regex query. The thing is I was doing
Unit testing on the find method using the code below :
As the test was failing, I assumed that the regex query "Harry Potter" I was using was wrong. After a little thinking, I realized dvdDatabase.findDVD("Harry Potter") returns a Collection and not a DVD and that is why my unit test was failing and not because the query "Harry Potter" was wrong. Actually the "Harry Potter" regex query was good because when I tested assertEquals(1,(dvdDatabase.findDVD("Harry Potter")).size()) the test went fine.
Again sorry for the confusion.
Sincerely,
borkev