assertEquals( "artist-various_albums.zip", d.getFileName(tracks) );
}
public void testExceptionThrownWhenDownloadsAreDisabled() throws Exception {
Downloader d = new Downloader();
Properties p = new StringProperties();
p.set( Constants.WWW_DOWNLOADS_DISABLE, Properties.YES );
boolean gotException = false;
d.setProperties( p );
d.setLocale( new TestLocale() );
try { d.handleRequest(); }
catch ( BadRequestException e ) { gotException = true; }