[pal-cvs 3123] [859] working...

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 12日 (水) 21:54:28 JST


Revision: 859
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=859
Author:   shinsuke
Date:     2008-03-12 21:54:27 +0900 (Wed, 12 Mar 2008)

Log Message:
-----------
working...

Modified Paths:
--------------
    pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java
    pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java
    pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java

Added Paths:
-----------
    pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.java
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addCategoryDescription_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addManufactureDescription_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addProductDescription_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription1_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription2_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescriptionBreadcrumb_Expected.xls
    pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getManufacturerDescription1_Expected.xls


-------------- next part --------------
Modified: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java
===================================================================
--- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java	2008-03-12 12:43:41 UTC (rev 858)
+++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/ProductService.java	2008-03-12 12:54:27 UTC (rev 859)
@@ -25,7 +25,7 @@
     public ProductDescription getProdcutDescription(BigDecimal id);
 
     public ProductDescription getProdcutDescription(BigDecimal id,
-            BigDecimal languagesId);
+            String language);
 
     public List<Product> getProductList(BigDecimal categoryId);
 
@@ -47,12 +47,12 @@
     public List<CategoryDescription> getSubCategoryDescriptionList(BigDecimal id);
 
     public List<CategoryDescription> getSubCategoryDescriptionList(
-            BigDecimal id, BigDecimal languagesId);
+            BigDecimal id, String language);
 
     public CategoryDescription getCategoryDescription(BigDecimal categoryId);
 
     public CategoryDescription getCategoryDescription(BigDecimal categoryId,
-            BigDecimal languageId);
+            String language);
 
     public void addCategoryDescription(CategoryDescription d);
 
@@ -73,12 +73,12 @@
     public ManufacturerDescription getManufactureDescription(BigDecimal id);
 
     public ManufacturerDescription getManufactureDescription(BigDecimal id,
-            BigDecimal languageId);
+            String language);
 
     public List<ManufacturerDescription> getManufactureDescriptionList();
 
     public List<ManufacturerDescription> getManufactureDescriptionList(
-            BigDecimal languagesId);
+            String language);
 
     public List<Manufacturer> getManufacturerList();
 

Modified: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java
===================================================================
--- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java	2008-03-12 12:43:41 UTC (rev 858)
+++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java	2008-03-12 12:54:27 UTC (rev 859)
@@ -246,11 +246,11 @@
         getAddressBookBhv().delete(addressBook);
     }
 
-    //    public void deleteBasket(Basket basket) {
-    //        getBasketBhv().delete(basket);
-    //
-    //    }
+    public void deleteBasket(Basket basket) {
+        getBasketBhv().delete(basket);
 
+    }
+
     public void deleteBasket(BigDecimal basketId) {
         BasketCB cb = new BasketCB();
         cb.query().setBasketId_Equal(basketId);
@@ -291,7 +291,7 @@
         // needed(for tax)
         cb.setupSelect_DeliveryZone();
         cb.query().setAddressBookId_Equal(addressBookId);
-        return getAddressBookBhv().selectEntity(cb);
+        return addressBookBhv.selectEntity(cb);
     }
 
     public List<AddressBook> getAddressBookList(BigDecimal customerId) {
@@ -359,7 +359,7 @@
         getBasketBhv().update(basket);
 
     }
-
+    
     //TODO test
     public void updateCustomer(Customer customer, AddressBook addressBook) {
         getCustomerBhv().update(customer);

Modified: pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java
===================================================================
--- pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java	2008-03-12 12:43:41 UTC (rev 858)
+++ pompei/libraries/pompei-db/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java	2008-03-12 12:54:27 UTC (rev 859)
@@ -1,15 +1,34 @@
 package jp.sf.pal.pompei.service.impl;
 
 import java.math.BigDecimal;
+import java.sql.Timestamp;
+import java.util.Date;
+import java.util.Iterator;
 import java.util.List;
 
 import jp.sf.pal.pompei.PompeiDBException;
 import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean;
+import jp.sf.pal.pompei.cbean.CategoryCB;
+import jp.sf.pal.pompei.cbean.CategoryDescriptionCB;
+import jp.sf.pal.pompei.cbean.ManufacturerCB;
+import jp.sf.pal.pompei.cbean.ManufacturerDescriptionCB;
+import jp.sf.pal.pompei.cbean.ProductCB;
+import jp.sf.pal.pompei.cbean.ProductDescriptionCB;
+import jp.sf.pal.pompei.exbhv.CategoryBhv;
+import jp.sf.pal.pompei.exbhv.CategoryDescriptionBhv;
+import jp.sf.pal.pompei.exbhv.ManufacturerBhv;
+import jp.sf.pal.pompei.exbhv.ManufacturerDescriptionBhv;
+import jp.sf.pal.pompei.exbhv.ProductBhv;
+import jp.sf.pal.pompei.exbhv.ProductDescriptionBhv;
+import jp.sf.pal.pompei.exbhv.ProductToCategoryBhv;
+import jp.sf.pal.pompei.exentity.Category;
 import jp.sf.pal.pompei.exentity.CategoryDescription;
+import jp.sf.pal.pompei.exentity.FileData;
 import jp.sf.pal.pompei.exentity.Manufacturer;
 import jp.sf.pal.pompei.exentity.ManufacturerDescription;
 import jp.sf.pal.pompei.exentity.Product;
 import jp.sf.pal.pompei.exentity.ProductDescription;
+import jp.sf.pal.pompei.exentity.ProductToCategory;
 import jp.sf.pal.pompei.pager.ProductPager;
 import jp.sf.pal.pompei.service.ProductService;
 
@@ -17,61 +36,195 @@
 
     private static final long serialVersionUID = -5967665210840374017L;
 
+    private ProductBhv productBhv;
+
+    private ProductDescriptionBhv productDescriptionBhv;
+
+    private ProductToCategoryBhv productToCategoryBhv;
+
+    private CategoryBhv categoryBhv;
+
+    private CategoryDescriptionBhv categoryDescriptionBhv;
+
+    private ManufacturerBhv manufacturerBhv;
+
+    private ManufacturerDescriptionBhv manufacturerDescriptionBhv;
+
     public void addCategoryDescription(CategoryDescription d) {
-        // TODO Auto-generated method stub
+        Category c = d.getCategory();
+        c.setUpdatedDate(new Timestamp(new Date().getTime()));
+        categoryBhv.insert(c);
 
+        d.setCategoryId(c.getCategoryId());
+        categoryDescriptionBhv.insert(d);
+
     }
 
     public void addManufactureDescription(ManufacturerDescription info) {
-        // TODO Auto-generated method stub
+        // TODO test
+        Manufacturer manufacturer = info.getManufacturer();
+        manufacturer.setUpdatedDate(new Timestamp(new Date().getTime()));
+        manufacturerBhv.insert(manufacturer);
 
+        info.setManufacturerId(manufacturer.getManufacturerId());
+        manufacturerDescriptionBhv.insert(info);
+
     }
 
     public void addProductDescription(ProductDescription description,
             BigDecimal categoryId) throws PompeiDBException {
-        // TODO Auto-generated method stub
+        // TODO test
+        // product
+        Product product = description.getProduct();
+        product.setCreatedDate(new Timestamp(new Date().getTime()));
+        product.setUpdatedDate(new Timestamp(new Date().getTime()));
+        productBhv.insert(product);
 
+        // product description
+        description.setProductId(product.getProductId());
+        productDescriptionBhv.insert(description);
+
+        // product to category
+        ProductToCategory productToCategory = new ProductToCategory();
+        productToCategory.setCategoryId(categoryId);
+        productToCategory.setProductId(product.getProductId());
+        productToCategoryBhv.insert(productToCategory);
+
+        // TODO わからない
+        if (product.getFileData() != null) {
+            FileData fileData = new FileData();
+            if (fileData.getImageDataList() != null) {
+                ;
+            }
+        }
+
     }
 
     public void deleteCategory(BigDecimal id) {
-        // TODO Auto-generated method stub
+        // TODO test
+        // delete CategoryDescription
+        CategoryDescriptionCB cb = new CategoryDescriptionCB();
+        cb.query().setCategoryId_Equal(id);
+        List<CategoryDescription> list = categoryDescriptionBhv.selectList(cb);
+        for (Iterator<CategoryDescription> itr = list.iterator(); itr.hasNext();) {
+            categoryDescriptionBhv.delete(itr.next());
+        }
 
+        // delete Category
+        CategoryCB cb2 = new CategoryCB();
+        cb2.query().setCategoryId_Equal(id);
+        Category c = categoryBhv.selectEntity(cb2);
+        categoryBhv.delete(c);
     }
 
     public void deleteManufacture(BigDecimal id) {
-        // TODO Auto-generated method stub
+        // TODO test
+        ManufacturerDescriptionCB cb = new ManufacturerDescriptionCB();
+        cb.query().setManufacturerId_Equal(id);
+        List<ManufacturerDescription> entities = manufacturerDescriptionBhv
+                .selectList(cb);
+        for (Iterator<ManufacturerDescription> itr = entities.iterator(); itr
+                .hasNext();) {
+            manufacturerDescriptionBhv.delete(itr.next());
+        }
 
+        ManufacturerCB cb2 = new ManufacturerCB();
+        cb2.query().setManufacturerId_Equal(id);
+        Manufacturer manufacturers = manufacturerBhv.selectEntity(cb2);
+        manufacturerBhv.delete(manufacturers);
     }
 
     public void deleteProduct(BigDecimal productsId) {
-        // TODO Auto-generated method stub
+        //TODO とちゅう
+        //
+        //        ProductCB cb = new ProductCB();
+        //        cb.query().setProductId_Equal(productsId);
+        //        List<Product> productList = productBhv.selectList(cb);
+        //        productBhv.loadBargainList(productList);
+        //        productBhv.loadBasketList(productList);
+        //        productBhv.loadFavoriteProductList(productList);
+        ////        productBhv.loadOrderProductList(productList);
+        //        productBhv.loadProductAttributeList(productList);
+        //        productBhv.loadProductContentList(productList);
+        //        productBhv.loadProductDescriptionList(productList);
+        //        productBhv.loadProductInfoList(productList);
+        //        productBhv.loadProductNotificationList(productList);
+        //        productBhv.loadProductOptionList(productList);
+        //        productBhv.loadProductStatsList(productList);
+        //        productBhv.loadProductToCategoryList(productList);
+        //        productBhv.loadReviewList(productList);
+        //        productBhv.loadBargainList(productList);
+        //        for (Product p : productList) {
+        //            if (!p.getProductImageList().isEmpty()) {
+        //                getProductImageBhv().deleteList(p.getProductImageList());
+        //            }
+        //            if (!p.getCustomerBasketAttributeList().isEmpty()) {
+        //                getCustomerBasketAttributeBhv().deleteList(
+        //                        p.getCustomerBasketAttributeList());
+        //            }
+        //            if (!p.getCustomerBasketList().isEmpty()) {
+        //                getCustomerBasketBhv().deleteList(p.getCustomerBasketList());
+        //            }
+        //            if (!p.getProductAttributeList().isEmpty()) {
+        //                getProductAttributeBhv()
+        //                        .deleteList(p.getProductAttributeList());
+        //            }
+        //            if (!p.getProductDescriptionList().isEmpty()) {
+        //                getProductDescriptionBhv().deleteList(
+        //                        p.getProductDescriptionList());
+        //            }
+        //            if (!p.getProductNotificationList().isEmpty()) {
+        //                getProductNotificationBhv().deleteList(
+        //                        p.getProductNotificationList());
+        //            }
+        //            if (!p.getProductToCategoryList().isEmpty()) {
+        //                getProductToCategoryBhv().deleteList(
+        //                        p.getProductToCategoryList());
+        //            }
+        //            if (!p.getReviewList().isEmpty()) {
+        //                getReviewBhv().deleteList(p.getReviewList());
+        //            }
+        //            if (!p.getBargainList().isEmpty()) {
+        //                getBargainBhv().deleteList(p.getBargainList());
+        //            }
+        //            productBhv.delegateDelete(p);
+        //        }
 
     }
 
     public CategoryDescription getCategoryDescription(BigDecimal categoryId) {
-        // TODO Auto-generated method stub
-        return null;
+        CategoryDescriptionCB cb = new CategoryDescriptionCB();
+        cb.setupSelect_Category();
+        cb.query().setCategoryId_Equal(categoryId);
+        return categoryDescriptionBhv.selectEntity(cb);
     }
 
     public CategoryDescription getCategoryDescription(BigDecimal categoryId,
-            BigDecimal languageId) {
-        // TODO Auto-generated method stub
-        return null;
+            String language) {
+        CategoryDescriptionCB cb = new CategoryDescriptionCB();
+        cb.setupSelect_Category();
+        cb.query().setCategoryId_Equal(categoryId);
+        cb.query().setLanguage_Equal(language);
+        return categoryDescriptionBhv.selectEntity(cb);
     }
 
     public List<CategoryDescription> getCategoryDescriptionBreadcrumb(
             BigDecimal categoryId) {
-        // TODO Auto-generated method stub
-        return null;
+        CategoryDescriptionCB cb = new CategoryDescriptionCB();
+        cb.setupSelect_Category();
+        cb.query().setCategoryId_Equal(categoryId);
+        return categoryDescriptionBhv.selectList(cb);
     }
 
     public ManufacturerDescription getManufactureDescription(BigDecimal id) {
-        // TODO Auto-generated method stub
-        return null;
+        ManufacturerDescriptionCB cb = new ManufacturerDescriptionCB();
+        cb.setupSelect_Manufacturer();
+        cb.query().setManufacturerDescriptionId_Equal(id);
+        return manufacturerDescriptionBhv.selectEntity(cb);
     }
 
     public ManufacturerDescription getManufactureDescription(BigDecimal id,
-            BigDecimal languageId) {
+            String language) {
         // TODO Auto-generated method stub
         return null;
     }
@@ -82,7 +235,7 @@
     }
 
     public List<ManufacturerDescription> getManufactureDescriptionList(
-            BigDecimal languagesId) {
+            String language) {
         // TODO Auto-generated method stub
         return null;
     }
@@ -98,19 +251,31 @@
     }
 
     public Product getProdcut(BigDecimal id) {
-        // TODO Auto-generated method stub
-        return null;
+        // TODO test
+        ProductCB cb = new ProductCB();
+        cb.query().setProductId_Equal(id);
+        return productBhv.selectEntity(cb);
     }
 
     public ProductDescription getProdcutDescription(BigDecimal id) {
-        // TODO Auto-generated method stub
+        // TODO local
+        //        String currentLanguage = FacesContext.getCurrentInstance()
+        //                                             .getViewRoot()
+        //                                             .getLocale()
+        //                                             .toString();
+        //        return getProdcutDescription(id, currentLanguage);
         return null;
     }
 
     public ProductDescription getProdcutDescription(BigDecimal id,
-            BigDecimal languagesId) {
-        // TODO Auto-generated method stub
-        return null;
+            String language) {
+        // TODO test
+        ProductDescriptionCB cb = new ProductDescriptionCB();
+        cb.setupSelect_Product();
+
+        cb.query().setProductId_Equal(id);
+        cb.query().setLanguage_Equal(language);
+        return productDescriptionBhv.selectEntity(cb);
     }
 
     public List<Product> getProductList(BigDecimal categoryId) {
@@ -130,7 +295,7 @@
     }
 
     public List<CategoryDescription> getSubCategoryDescriptionList(
-            BigDecimal id, BigDecimal languagesId) {
+            BigDecimal id, String language) {
         // TODO Auto-generated method stub
         return null;
     }
@@ -161,4 +326,36 @@
 
     }
 
+    public void setProductBhv(ProductBhv productBhv) {
+        this.productBhv = productBhv;
+    }
+
+    public void setProductDescriptionBhv(
+            ProductDescriptionBhv productDescriptionBhv) {
+        this.productDescriptionBhv = productDescriptionBhv;
+    }
+
+    public void setProductToCategoryBhv(
+            ProductToCategoryBhv productToCategoryBhv) {
+        this.productToCategoryBhv = productToCategoryBhv;
+    }
+
+    public void setCategoryBhv(CategoryBhv categoryBhv) {
+        this.categoryBhv = categoryBhv;
+    }
+
+    public void setCategoryDescriptionBhv(
+            CategoryDescriptionBhv categoryDescriptionBhv) {
+        this.categoryDescriptionBhv = categoryDescriptionBhv;
+    }
+
+    public void setManufacturerBhv(ManufacturerBhv manufacturerBhv) {
+        this.manufacturerBhv = manufacturerBhv;
+    }
+
+    public void setManufacturerDescriptionBhv(
+            ManufacturerDescriptionBhv manufacturerDescriptionBhv) {
+        this.manufacturerDescriptionBhv = manufacturerDescriptionBhv;
+    }
+
 }

Added: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.java
===================================================================
--- pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.java	2008-03-12 12:43:41 UTC (rev 858)
+++ pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.java	2008-03-12 12:54:27 UTC (rev 859)
@@ -0,0 +1,131 @@
+package jp.sf.pal.pompei.service.impl;
+
+import static org.seasar.framework.unit.S2Assert.assertEquals;
+
+import java.math.BigDecimal;
+import java.sql.Timestamp;
+import java.util.List;
+
+import jp.sf.pal.pompei.PompeiDBException;
+import jp.sf.pal.pompei.exentity.Category;
+import jp.sf.pal.pompei.exentity.CategoryDescription;
+import jp.sf.pal.pompei.exentity.Manufacturer;
+import jp.sf.pal.pompei.exentity.ManufacturerDescription;
+import jp.sf.pal.pompei.exentity.Product;
+import jp.sf.pal.pompei.exentity.ProductDescription;
+import jp.sf.pal.pompei.service.ProductService;
+
+import org.junit.runner.RunWith;
+import org.seasar.framework.unit.Seasar2;
+import org.seasar.framework.unit.TestContext;
+
+
+ @ RunWith(Seasar2.class)
+public class ProductServiceImplTest {
+    private TestContext ctx;
+    
+    private ProductService productService;
+    
+    public void getCategoryDescription1() {
+        // test passed
+        CategoryDescription categoryDescription = productService.getCategoryDescription(BigDecimal.valueOf(3));
+        assertEquals("getCategoryDescription(categoryId)", ctx.getExpected(),
+                categoryDescription);
+    }
+
+    public void getCategoryDescription2() {
+        // test passed
+        CategoryDescription categoryDescription = productService.getCategoryDescription(BigDecimal.valueOf(2), "english");
+        assertEquals("getCategoryDescription(categoryId, language)", ctx.getExpected(),
+                categoryDescription);
+    }
+
+    public void getCategoryDescriptionBreadcrumb() {
+        List<CategoryDescription> categoryDescription = productService.getCategoryDescriptionBreadcrumb(BigDecimal.valueOf(2));
+        assertEquals("getCategoryDescriptionBreadcrumb(categoryId)", ctx.getExpected(),
+                categoryDescription);
+    }
+
+    public void getManufacturerDescription1() {
+        // test passed
+        ManufacturerDescription manufactureDescription = productService.getManufactureDescription(BigDecimal.valueOf(2));
+        assertEquals("getManufactureDescription(id)", ctx.getExpected(),
+                manufactureDescription);
+    }
+    
+    public void addCategoryDescription() {
+        // test passed
+        Category category = new Category();
+        
+        category.setParentCategoryId(BigDecimal.valueOf(1));
+        category.setNumOfProduct(BigDecimal.valueOf(10));
+        category.setStatus(BigDecimal.valueOf(1));
+        category.setSortOrder(BigDecimal.valueOf(1));
+        
+        CategoryDescription categoryDescription = new CategoryDescription();
+        
+        categoryDescription.setCategory(category);
+        categoryDescription.setLanguage("japanese");
+        categoryDescription.setName("d6");
+        
+        productService.addCategoryDescription(categoryDescription);
+        
+        assertEquals("addCategoryDescription(CategoryDescription)", ctx.getExpected()
+                , productService.getCategoryDescription(BigDecimal.valueOf(6)));
+    }
+
+    public void addManufactureDescription() {
+        Manufacturer manufacturer = new Manufacturer();
+        
+        manufacturer.setFileDataId(BigDecimal.valueOf(4));
+        
+        ManufacturerDescription manufacturerDescription = new ManufacturerDescription();
+        
+        manufacturerDescription.setManufacturer(manufacturer);
+        manufacturerDescription.setContent("content5");
+        manufacturerDescription.setLanguage("japanese");
+        manufacturerDescription.setName("test5");
+        manufacturerDescription.setUrl("http://");
+        
+        productService.addManufactureDescription(manufacturerDescription);
+        
+        assertEquals("addManufactureDescription(ManufacturerDescription)", ctx.getExpected()
+                , productService.getManufactureDescription(BigDecimal.valueOf(5)));
+    }
+    
+    public void addProductDescription() throws PompeiDBException {
+        // test passed
+        Product product = new Product();
+        
+        product.setModel("A");
+        product.setCode("abc8");
+        product.setStock(BigDecimal.valueOf(99));
+        product.setPrice(BigDecimal.valueOf(5000));
+        product.setWeight(BigDecimal.valueOf(500));
+        product.setSize("M");
+        product.setStatus(BigDecimal.valueOf(1));
+        product.setLimitPurchase(BigDecimal.valueOf(2));
+        product.setReleaseDate(Timestamp.valueOf("2000-01-01 00:00:00"));
+        product.setStartDate(Timestamp.valueOf("2000-01-01 00:00:00"));
+        product.setEndDate(Timestamp.valueOf("2010-12-31 23:59:59"));
+        product.setFileDataId(BigDecimal.valueOf(4));
+        product.setManufacturerId(BigDecimal.valueOf(3));
+        product.setTaxTypeId(BigDecimal.valueOf(1));
+        product.setDeliveryTypeId(BigDecimal.valueOf(1));
+        
+        ProductDescription productDescription = new ProductDescription();
+        
+        productDescription.setProduct(product);
+        productDescription.setName("product8");
+        productDescription.setTitle("title8");
+        productDescription.setDescription("test8");
+        productDescription.setUrl("http://");
+        productDescription.setLanguage("japanese");
+        
+        productService.addProductDescription(productDescription, BigDecimal.valueOf(1));
+        
+        assertEquals("addProductDescription(ProductDescription, BigDecimal)", ctx.getExpected()
+                , productService.getProdcutDescription(BigDecimal.valueOf(8), "japanese"));
+    }
+
+}


Property changes on: pompei/libraries/pompei-db/trunk/src/test/java/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addCategoryDescription_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addCategoryDescription_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addManufactureDescription_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addManufactureDescription_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addProductDescription_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_addProductDescription_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription1_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription1_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription2_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescription2_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescriptionBreadcrumb_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getCategoryDescriptionBreadcrumb_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getManufacturerDescription1_Expected.xls
===================================================================
(Binary files differ)


Property changes on: pompei/libraries/pompei-db/trunk/src/test/resources/jp/sf/pal/pompei/service/impl/ProductServiceImplTest_getManufacturerDescription1_Expected.xls
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream


pal-cvs メーリングリストの案内
Back to archive index