Package com.dodo.blog.model

Examples of com.dodo.blog.model.Playground


    @GetModel( name = PLAYGROUND_FORM )
    public Playground getModel()
    {
        Long id = getLongParameter( PLAYGROUND_ID );

        Playground playground;
        if ( id != null )
        {
            playground = playgroundService.getPlaygroundById( id );
        }
        else
        {
            playground = new Playground();
        }

        return playground;
    }
View Full Code Here


    }

    @Test
    public void testDeletePlayground()
    {
        Playground playground = savePlayground();

        Long id = playground.getId();
        playgroundService.deletePlayground( id );
        Assert.assertNull( playgroundService.getPlaygroundById( id ) );
    }
View Full Code Here

        Assert.assertEquals( "CSS 3 border radius test", playground.get( 0 ).getDescription() );
    }

    private Playground savePlayground()
    {
        Playground playground = new Playground();
        playground.setDescription( "CSS 3 border radius test" );
        playgroundService.savePlayground( playground );

        return playground;
    }
View Full Code Here

TOP

Related Classes of com.dodo.blog.model.Playground

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.