Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
ce78a4eb
提交
ce78a4eb
authored
5 年前
作者:
sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 修改 package
上级
e25ba389
master
SinDev
feature-sca-1.0.0
feature/1.1.0
issues/I6KG21
spring-cloud-alibaba
system-2.0.0
v1.7.3
v1.7.2
v1.7.1
v1.0.0
无相关合并请求
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
9 行删除
+39
-9
OrderApplicationTest.java
.../java/cn/iocoder/mall/order/biz/OrderApplicationTest.java
+1
-1
OrderMapperTest.java
...ava/cn/iocoder/mall/order/biz/mapper/OrderMapperTest.java
+37
-0
OrderServiceImplTest.java
.../iocoder/mall/order/biz/service/OrderServiceImplTest.java
+1
-8
没有找到文件。
order/order-service-impl/src/test/java/cn/iocoder/mall/order/OrderApplicationTest.java
→
order/order-service-impl/src/test/java/cn/iocoder/mall/order/
biz/
OrderApplicationTest.java
浏览文件 @
ce78a4eb
package
cn
.
iocoder
.
mall
.
order
;
package
cn
.
iocoder
.
mall
.
order
.
biz
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
This diff is collapsed.
Click to expand it.
order/order-service-impl/src/test/java/cn/iocoder/mall/order/biz/mapper/OrderMapperTest.java
0 → 100644
浏览文件 @
ce78a4eb
package
cn
.
iocoder
.
mall
.
order
.
biz
.
mapper
;
import
cn.iocoder.mall.order.biz.OrderApplicationTest
;
import
cn.iocoder.mall.order.biz.dao.OrderMapper
;
import
cn.iocoder.mall.order.biz.dataobject.OrderDO
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* mapper test
*
* @author Sin
* @time 2019/5/13 10:45 PM
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
OrderApplicationTest
.
class
)
@Transactional
public
class
OrderMapperTest
{
@Autowired
private
OrderMapper
orderMapper
;
@Test
public
void
updateByIdTest
()
{
int
id
=
47
;
// int updateStatus = 99;
// int res = orderMapper.update(new OrderDO().setStatus(id), new UpdateWrapper<OrderDO>().eq("id", updateStatus));
OrderDO
orderDO
=
orderMapper
.
selectById
(
id
);
// Assert.assertTrue(orderDO.getStatus() == updateStatus);
}
}
This diff is collapsed.
Click to expand it.
order/order-service-impl/src/test/java/cn/iocoder/mall/order/biz/service/OrderServiceImplTest.java
浏览文件 @
ce78a4eb
package
cn
.
iocoder
.
mall
.
order
.
biz
.
service
;
import
cn.iocoder.common.framework.vo.CommonResult
;
import
cn.iocoder.mall.order.OrderApplicationTest
;
import
cn.iocoder.mall.order.biz.OrderApplicationTest
;
import
cn.iocoder.mall.order.api.OrderService
;
import
cn.iocoder.mall.order.api.bo.OrderCreateBO
;
import
cn.iocoder.mall.order.api.dto.OrderCreateDTO
;
import
cn.iocoder.mall.order.biz.dao.OrderMapper
;
import
cn.iocoder.mall.order.biz.dataobject.OrderDO
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -15,8 +10,6 @@ import org.springframework.boot.test.context.SpringBootTest;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Arrays
;
/**
* 订单 service test
*
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论