Package com.pugh.sockso.web

Examples of com.pugh.sockso.web.Server


    }

    public void testHandleRequest() throws Exception {

        TestResponse res = new TestResponse();
        Server sv = createNiceMock( Server.class );
        String skin = "hsdjkahsdjkahsdk";

        Properties p = new StringProperties();
        p.set( "www.skin", skin );
View Full Code Here


   
    public void testShowXspf() throws Exception {
       
        final Request req = createNiceMock( Request.class );
       
        final Server s = createNiceMock( Server.class );
       
        final TestResponse res = new TestResponse();
        final TXspf tpl = new TXspf();
        final Track track = TestUtils.getTrack();
        final String protocol = "hTTppTT";
View Full Code Here

    protected String renderPlaylist( final Class tplClass, final Properties p, final User user ) throws Exception {

        final Track track = TestUtils.getTrack();
       
        final Server server = createNiceMock( Server.class );
        final Request req = createNiceMock( Request.class );

        replay( server );
        replay( req );
View Full Code Here

public class AppFrameTest extends TestCase {

    public void testUpdateUrlLabel() {

        final Server sv = createMock( Server.class );
        expect( sv.getProtocol() ).andReturn( "" ).times( 1 );
        expect( sv.getHost() ).andReturn( "MYHOST" ).times( 1 );
        replay( sv );
       
        final AppFrame a = new AppFrame( null, null, sv, null, new TestLocale() );
        a.updateUrlLabel();
       
View Full Code Here

TOP

Related Classes of com.pugh.sockso.web.Server

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.