Package com.pugh.sockso.web.action.covers

Source Code of com.pugh.sockso.web.action.covers.NeuteredDefaultCoverer

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 {}
}
TOP

Related Classes of com.pugh.sockso.web.action.covers.NeuteredDefaultCoverer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.