|
@@ -1,5 +1,6 @@
|
|
|
package com.izouma.dingdong.contorller;
|
|
package com.izouma.dingdong.contorller;
|
|
|
|
|
|
|
|
|
|
+import com.izouma.dingdong.domain.merchant.MerchantClassification;
|
|
|
import com.izouma.dingdong.web.merchant.MerchantClassificationController;
|
|
import com.izouma.dingdong.web.merchant.MerchantClassificationController;
|
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
import org.junit.runner.RunWith;
|
|
@@ -23,4 +24,23 @@ public class ClassificationControllerTest {
|
|
|
public void testDelGoods(){
|
|
public void testDelGoods(){
|
|
|
controller.delGoods(1L,109L);
|
|
controller.delGoods(1L,109L);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void testSave(){
|
|
|
|
|
+ MerchantClassification classification = new MerchantClassification();
|
|
|
|
|
+
|
|
|
|
|
+ classification.setId(205L);
|
|
|
|
|
+ classification.setName("点单必读");
|
|
|
|
|
+ classification.setSort(1);
|
|
|
|
|
+ classification.setMerchantId(189L);
|
|
|
|
|
+ classification.setGoodsIds("310,311");
|
|
|
|
|
+ classification.setIsOpen(false);
|
|
|
|
|
+ classification.setIsShow(true);
|
|
|
|
|
+ System.out.println(controller.save(classification));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void show(){
|
|
|
|
|
+ System.out.println(controller.allGoods(475L));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|