[Spring][쇼핑몰 프로젝트][22] 상품 정보 삭제 구현

https://kimvampa.tistory.com/209
This commit is contained in:
SeoJin Kim
2021-04-26 21:04:02 +09:00
parent 28bc356fce
commit 7d33d4cfd8
22 changed files with 176 additions and 8 deletions

View File

@@ -89,6 +89,7 @@ public class AdminMapperTests {
*/
/* 상품 정보 수정 */
/*
@Test
public void goodsModifyTest() {
@@ -109,6 +110,21 @@ public class AdminMapperTests {
mapper.goodsModify(book);
}
*/
/* 상품 정보 삭제 */
@Test
public void goodsDeleteTest() {
int bookId = 169;
int result = mapper.goodsDelete(bookId);
if(result == 1) {
System.out.println("삭제 성공");
}
}
}