Skip to content

Commit

Permalink
Update SeckillServiceImplTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksonto authored Jan 31, 2018
1 parent 85baffe commit 0a86468
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/test/java/com/nnngu/service/SeckillServiceImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@

import java.util.List;


/**
* Created by nnngu
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:spring/applicationContext-dao.xml", "classpath:spring/applicationContext-service.xml"})
public class SeckillServiceImplTest {
private Logger logger = LoggerFactory.getLogger(this.getClass());
private Logger logger = LoggerFactory.getLogger(this.getClass());

@Autowired
private SeckillService seckillService;
private SeckillService seckillService;

@Test
public void getSeckillList() throws Exception {
List<Seckill> seckillList = seckillService.getSeckillList();
List<Seckill> seckillList = seckillService.getSeckillList();
// logger.info(seckillList.toString());
System.out.println(seckillList.toString());
System.out.println(seckillList.toString());
}

@Test
Expand All @@ -44,7 +43,7 @@ public void getById() throws Exception {

@Test
public void exportSeckillUrl() throws Exception {
long seckillId = 1000;
long seckillId = 1000;
Exposer exposer = seckillService.exportSeckillUrl(seckillId);
System.out.println(exposer.toString());
}
Expand Down Expand Up @@ -80,4 +79,4 @@ public void executeSeckillProcedureTest() {
}
}

}
}

0 comments on commit 0a86468

Please sign in to comment.