# unittestdemo **Repository Path**: tianzhipeng/unittestdemo ## Basic Information - **Project Name**: unittestdemo - **Description**: 单元测试示例 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 单元测试示例 [详细内容见文章](https://tianzhipeng.oschina.io/2018/05/25/unittest.html) Java中需要引入的框架. - Junit 4.x - Mockito - dbunit 示例中使用了spring-boot-starter-test, 隐含的引入了相关依赖. 示例用数据表 ``` CREATE TABLE `st_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; ```