package com.pugh.sockso.web.action.covers;
import com.pugh.sockso.StringProperties;
import com.pugh.sockso.music.CoverArt;
import com.pugh.sockso.cache.CoverArtCache;
import com.pugh.sockso.tests.SocksoTestCase;
import com.pugh.sockso.tests.TestLocale;
import java.io.IOException;
public class DefaultCovererTest extends SocksoTestCase {
private DefaultCoverer coverer;
@Override
protected void setUp() {
coverer = new NeuteredDefaultCoverer();
coverer.setProperties( new StringProperties() );
coverer.setLocale( new TestLocale() );
coverer.coverCache = new CoverArtCache();
}
public void testDefaultCovererReturnsTrue() throws Exception {
assertTrue( coverer.serveCover("") );
}
}
class NeuteredDefaultCoverer extends DefaultCoverer {
@Override
protected void serveCover( final CoverArt cover, final String itemName, final boolean addToCache) throws IOException {}
}