Package com.pugh.sockso.web.action

Examples of com.pugh.sockso.web.action.CoverSearch


public class RemoteCovererTest extends SocksoTestCase {

    public void testServeCover() throws Exception {
       
        final CoverSearch coverSearch = createNiceMock( CoverSearch.class );
        final CoverArt coverArt = new CoverArt("ar123");
        expect( coverSearch.getCover("ar123") ).andReturn( coverArt );
        replay( coverSearch );
       
        RemoteCoverer coverer = new NeuteredRemoteCoverer( coverSearch );
        coverer.setProperties( new StringProperties() );
       
View Full Code Here


        verify( coverSearch )
    }
   
    public void testFalseReturnedWhenRemoteCoversDisabled() throws Exception {
       
        final CoverSearch coverSearch = createMock( CoverSearch.class );
       
        RemoteCoverer coverer = new NeuteredRemoteCoverer( coverSearch );
        coverer.setProperties( new StringProperties() );
       
        coverer.getProperties()
View Full Code Here

        assertFalse( coverer.serveCover("ar123") );
    }

    public void testServeCoverNotFound() throws Exception {
       
        final CoverSearch coverSearch = createNiceMock( CoverSearch.class );
        expect( coverSearch.getCover("ar123") ).andReturn( null );
        replay( coverSearch );
       
        RemoteCoverer coverer = new NeuteredRemoteCoverer( coverSearch );
        coverer.setProperties( new StringProperties() );
       
View Full Code Here

TOP

Related Classes of com.pugh.sockso.web.action.CoverSearch

Copyright © 2018 www.massapicom. 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.