Examples of TestLocale


Examples of com.pugh.sockso.tests.TestLocale

   
    private Command cmd;
   
    @Override
    public void setUp() {
        locale = new TestLocale();
        locale.setString( "con.msg.userDeleted", "user deleted" );
        locale.setString( "con.err.errorDeletingUser", "invalid user id" );
        db = new TestDatabase();
        cmd = new UserDel( db, locale );
    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        ip = new ImportPlaylist(
            null,
            db,
            new DBCollectionManager( db, new StringProperties(), null ),
            null,
            new TestLocale()
        );
    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        final Database db = createMock( Database.class );
        expect( db.prepare((String)anyObject()) ).andReturn( st ).times( 1 );
        replay( db );
       
        final File playlistFile = new File( "myPlaylist.m3u" );
        final ImportPlaylist ip = new ImportPlaylist( null, db, null, null, new TestLocale() );
       
        assertEquals( "myPlaylist (2)", ip.getPlaylistName(playlistFile) );
       
        verify( db );
        verify( st );
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

    private MyAdminAction action;
   
    public void setUp() {
        action = new MyAdminAction();
        action.setLocale( new TestLocale() );
    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

    public Renderer getTemplate()  {

        final IMusicLinks tpl = new IMusicLinks();

        tpl.setProperties( p );
        tpl.setLocale( new TestLocale() );
        tpl.setType( "" );
        tpl.setName( name );
        tpl.setShareLink( shareLink );
        tpl.setPlayRandomLink( playRandomLink );
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

    private TestLocale locale;
   
    @Override
    public void setUp() {
        locale = new TestLocale();
        res = new TestResponse();
        p = new StringProperties();
        c = new Console( null );
        c.setResponse( res );
        c.setProperties( p );
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        u.addAuthenticator( new DBAuthenticator(db) );
        u.setDatabase( db );
        u.setRequest( req );
        u.setProperties( p );
        u.setResponse( resp );
        u.setLocale( new TestLocale() );

    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        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();
       
        assertTrue( a.getUrlLabel().getText().contains("MYHOST") );
       
    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        res = new TestResponse();
        req = new TestRequest( "GET / HTTP/1.1" );
        js = new Jsoner( null, null );
        js.setRequest( req );
        js.setResponse( res );
        js.setLocale( new TestLocale() );
        js.setProperties( p );
        js.setDatabase( db );
    }
View Full Code Here

Examples of com.pugh.sockso.tests.TestLocale

        final IHeader tpl = new IHeader();

        tpl.setUser( user );
        tpl.setProperties( p );
        tpl.setLocale( new TestLocale() );

        return tpl.makeRenderer();

    }
View Full Code Here
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.