Merge branch '通过Kafak获取数据上报' of http://git.yoho.cn/yoho30/yohobuy-union into 通过Kafak获取数据上报
# Conflicts: # web/src/test/java/com/test/KafakTest.java
Showing
1 changed file
with
3 additions
and
1 deletions
1 | package com.test; | 1 | package com.test; |
2 | 2 | ||
3 | +import org.junit.Test; | ||
3 | import org.junit.runner.RunWith; | 4 | import org.junit.runner.RunWith; |
4 | import org.springframework.beans.factory.annotation.Autowired; | 5 | import org.springframework.beans.factory.annotation.Autowired; |
5 | import org.springframework.kafka.core.KafkaTemplate; | 6 | import org.springframework.kafka.core.KafkaTemplate; |
6 | import org.springframework.test.context.ContextConfiguration; | 7 | import org.springframework.test.context.ContextConfiguration; |
7 | -import org.junit.Test; | ||
8 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; | 8 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
9 | +import org.springframework.test.context.web.WebAppConfiguration; | ||
9 | 10 | ||
10 | /** | 11 | /** |
11 | * Created by yoho on 2017/4/17. | 12 | * Created by yoho on 2017/4/17. |
12 | */ | 13 | */ |
13 | @RunWith(SpringJUnit4ClassRunner.class) | 14 | @RunWith(SpringJUnit4ClassRunner.class) |
15 | +@WebAppConfiguration | ||
14 | @ContextConfiguration(locations = {"classpath*:META-INF/spring/mybatis-datasource.xml", "classpath*:META-INF/spring/spring*.xml"}) | 16 | @ContextConfiguration(locations = {"classpath*:META-INF/spring/mybatis-datasource.xml", "classpath*:META-INF/spring/spring*.xml"}) |
15 | public class KafakTest { | 17 | public class KafakTest { |
16 | 18 |
-
Please register or login to post a comment