JUnit斷言方法有很多
測試a是否等於b(a和b是原始類型數值(primitive value)或者必須為實現比較而具有equal方法)
assertFalse(a) Asserts that a condition (a) is false
測試a是否為false(假)
assertTrue(a) Asserts that a condition is true
測試a是否為true(真)
assertNotNull(a) Asserts that an object isn
測試a是否非空
assertNull(a) Asserts that an object is null
測試a是否為null
assertNotSame(a
測試a和b是否沒有都引用同一個對象
assertSame(a
測試a和b是否都引用同一個對象
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29239.html