maven项目中测试代码
来源:互联网 发布:办公隔断图片淘宝 编辑:程序博客网 时间:2024/04/30 23:43
1 在src/test/java中新建测试的java类 以下是一段测试代码package com.nufront.euht.test;import java.util.List;import org.apache.log4j.Logger;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;import com.alibaba.fastjson.JSON;import com.nufront.euht.model.CapEau;import com.nufront.euht.model.SysLog;import com.nufront.euht.service.sys.SysLogServiceI;import com.nufront.euht.util.PageParameter;import com.nufront.euht.util.UuidUtil;@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = { "classpath:spring.xml", "classpath:spring-mybatis.xml" })public class SysLogTest { private static final Logger logger = Logger.getLogger(SysLogTest.class);@Autowiredprivate SysLogServiceI service;@Testpublic void test() throws Exception {//addData();findData();}}
0 0
- maven项目中测试代码
- springmvc+mongodb+maven 项目测试代码
- idea maven项目中创建测试类
- Maven项目中mvn clean后找不到测试类问题
- Luecne基本原理:在Maven项目中简单环境搭建测试
- IntelliJ IDEA中MAVEN项目如何跳过测试?
- Maven项目中压缩js和Css代码
- SpringBoot Helloworld 测试 Maven项目
- maven-webapp项目测试类
- maven+sonarqube测试代码质量
- maven+sonarqube测试代码质量
- Maven下载安装、Eclipse配置maven详解、如何测试环境是否搭建成功及在Eclipse中创建Maven项目
- maven中改项目
- Maven 项目中 ClassNotFoundException
- Maven 项目中常用命令
- Maven中使用Junit测试
- Maven项目中WEB模块中后台代码打成jar包
- Maven项目中WEB模块中后台代码打成jar包
- 深入理解Java虚拟机学习总结(二) 垃圾收集器与内存分配策略
- 小米网技术架构变迁实践
- CSS布局-负边距
- mybatis的mapper配置文件的一般写法。
- Maven仓库
- maven项目中测试代码
- NYOJ 8 一种排序 sort()应用
- 多线程
- MySQL快速入门(二)——Java进阶学习第十六天
- paint进阶
- ViewPager与ListView纵向滑动冲突的问题
- H.264 RTPpayload 格式------ H.264 视频 RTP 负载格式(包含AAC部分解析)
- 邮箱验证
- Python学习笔记(十一)