assertFalse( action.canHandle(getRequest( "/api/artists/123" )) );
assertFalse( action.canHandle(getRequest( "/api/albums/123/tracks" )) );
}
public void testTracksListedWhenArtistIdFound() throws Exception {
TestDatabase db = new TestDatabase();
TestResponse res = new TestResponse();
db.fixture( "tracksForPath" );
action.setDatabase( db );
action.setResponse( res );
action.setRequest(getRequest( "/api/artists/1/tracks" ));
action.handleRequest();
assertContains( res.getOutput(), "My Track 1" );