/** * Test method for. * * <p>{@link ext.services.lastfm.LastFmCache#storeArtistInfo(java.lang.String, * ext.services.lastfm.ArtistInfo)} . */ public void testStoreArtistInfo() { LastFmCache cache = new LastFmCache(); LastFmArtist artist = new LastFmArtist(); artist.setName("Red Hot Chili Peppers"); cache.storeArtistInfo("Red Hot Chili Peppers", artist); assertNotNull(cache.retrieveArtistInfo("Red Hot Chili Peppers")); assertEquals( "Red Hot Chili Peppers", cache.retrieveArtistInfo("Red Hot Chili Peppers").getName()); }
/** * Test method for. * * <p>{@link ext.services.lastfm.LastFmCache#retrieveArtistInfo(java.lang.String)} . */ public void testRetrieveArtistInfo() { LastFmCache cache = new LastFmCache(); assertNull(cache.retrieveArtistInfo("Red Hot Chili Peppers")); }