*/
public void testPhotoDelete() {
PhotoFolder folder = PhotoFolder.create( "testListener", null );
String fname = "test1.jpg";
File f = new File( testImgDir, fname );
PhotoInfo photo = null;
try {
photo = PhotoInfo.addToDB( f );
} catch ( PhotoNotFoundException e ) {
fail( "Could not find photo: " + e.getMessage() );
}
folder.addPhoto( photo );
photo.delete();
assertEquals( "After deleting the photo there should be no photos in the folder",
folder.getPhotoCount(), 0 );
}