Package com.pugh.sockso.web

Examples of com.pugh.sockso.web.User


        p.set( Constants.WWW_UPLOADS_ENABLED, Properties.NO );
        p.set( Constants.WWW_UPLOADS_ALLOW_ANONYMOUS, Properties.YES );
        assertTrue( !render().contains("/upload") );

        user = new User( 1, "foo" );

        p.set( Constants.WWW_UPLOADS_ENABLED, Properties.YES );
        p.set( Constants.WWW_UPLOADS_ALLOW_ANONYMOUS, Properties.NO );
        assertTrue( render().contains("/upload") );
View Full Code Here


        assertTableSize( db, "users", 1 );
    }

    public void testAddingAUserInsertsTheirDetailsCorrectly() throws Exception {
        execute( "useradd name pass email@domain.com 1" );
        User u = User.find( db, 0 );
        assertEquals( 0, u.getId() );
        assertEquals( "name", u.getName() );
        assertEquals( "email@domain.com", u.getEmail() );
    }
View Full Code Here

        final TestResponse res = new TestResponse();
        final Playlistser b = new Playlistser();
        final List<Playlist> sitePlaylists = new ArrayList<Playlist>();
        final List<Playlist> userPlaylists = new ArrayList<Playlist>();
        final User user = new User( 12323, "my user" );
        final Playlist sitePlaylist = new Playlist( 1, "site Play list" );
        final Playlist userPlaylist = new Playlist( 1, "USER Play list", 1, user );

        sitePlaylists.add( sitePlaylist );
        userPlaylists.add( userPlaylist );
       
        b.setResponse( res );
        b.showPlaylists( sitePlaylists, userPlaylists );
       
        final String data = res.getOutput();

        assertTrue( data.contains(sitePlaylist.getName()) );
        assertTrue( data.contains(userPlaylist.getName()) );
        assertTrue( data.contains(user.getName()) );

    }
View Full Code Here

                .dateAdded(dateAdded)
                .build();

        p = new StringProperties();

        user = new User( 1, "name", null, null, 123, "ABC", true );

    }
View Full Code Here

TOP

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

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.