![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Junit
可儿杨
努力不一定有回报,不努力一定没有回报、、
展开
-
Junit学习笔记(一)
1.>Eclipse中自带了junit中所需的两个jar包原创 2014-04-16 02:35:24 · 467 阅读 · 0 评论 -
Junit学习笔记(四)
/** * * @author KerYang * */ package com.keryang.junit.instance.junittest; import static org.junit.Assert.*; import static org.hamcrest.Matchers.*; import org.junit.After; import org.junit.Af原创 2014-04-16 10:58:34 · 343 阅读 · 0 评论 -
Junit学习笔记(二)
方法assertTrue(2 > 4) 与方法assertTrue(2 > 4)原创 2014-04-16 09:22:52 · 418 阅读 · 0 评论 -
Junit学习笔记(三)
1. 示例 a) assertThat( n, allOf( greaterThan(1), lessThan(15) ) ); assertThat( n, anyOf( greaterThan(16), lessThan(8) ) ); assertThat( n, anything() ); assertThat( str, is( "bjsxt" ) ); assertThat(原创 2014-04-16 10:08:35 · 486 阅读 · 0 评论