Package com.magento.api

Examples of com.magento.api.CatalogCategoryInfo


      testObjects.put("parentId", afterParentId);
     
      MessageProcessor flow = lookupFlowConstruct("move-category");
      flow.process(getTestEvent(testObjects));

      CatalogCategoryInfo movedCategory = getCategory(categoryId);
      assertTrue(movedCategory.getCategory_id().equals(Integer.toString(categoryId)));
      assertTrue(movedCategory.getParent_id().equals(Integer.toString(afterParentId)));
    }
    catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here


      int parentId = (Integer) testObjects.get("parentId");
     
      MessageProcessor flow = lookupFlowConstruct("get-category");
      MuleEvent response = flow.process(getTestEvent(testObjects));
     
      CatalogCategoryInfo category = (CatalogCategoryInfo) response.getMessage().getPayload();
      assertTrue(category.getParent_id().equals(Integer.toString(parentId)));
      assertTrue(category.getCategory_id().equals(Integer.toString(categoryId)));
    }
    catch (Exception e) {
      e.printStackTrace();
      fail();
    }
View Full Code Here

     * @throws Exception
     */
    @Test
    public void getCategory() throws Exception
    {
        CatalogCategoryInfo attributes = connector.getCategory(CATEGORY_ID_1, null, Arrays.asList("name", "is_active",
                "description"));
        assertEquals(attributes.getName(), "SubCategory1");
        assertEquals(1, attributes.getIs_active());
        assertEquals(attributes.getDescription(), "This a subcategory!");
    }
View Full Code Here

TOP

Related Classes of com.magento.api.CatalogCategoryInfo

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.