Package xpetstore.domain.catalog.model

Examples of xpetstore.domain.catalog.model.CategoryValue


        CategoryForm  frm = ( CategoryForm ) form;
        String        categoryId = frm.getCategoryId(  );
        PetstoreLocal petstore = getPetstore(  );

        /* Category*/
        CategoryValue category = petstore.getCategory( categoryId );
        frm.setCategoryValue( category );

        /* Items */
        Collection products = petstore.getProducts( categoryId, 0, Integer.MAX_VALUE ).getList(  );
        frm.setProductValues( products );
View Full Code Here


    //================================================   
    public void testGetCategory(  )
    {
        try
        {
            CategoryValue cat = _petstore.getCategory( "FISH" );
            assertNotNull( "category[FISH] not found", cat );
            assertEquals( "categoryId", "FISH", cat.getCategoryId(  ) );
            assertEquals( "name", "Fish", cat.getName(  ) );
            assertEquals( "description", "description of FISH", cat.getDescription(  ) );
        }
        catch ( Exception e )
        {
            fail( "Error=" + e.toString(  ) );
        }
View Full Code Here

TOP

Related Classes of xpetstore.domain.catalog.model.CategoryValue

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.