コード例 #1
0
 @Test
 public void shouldNotThrowException() throws Exception {
   CustomAssert customAssert = new CustomAssert();
   customAssert.that("", CustomIs.equalTo("Hello"));
 }
コード例 #2
0
 // Story 2 - Asserting inverse equality - Part two
 @Test
 public void shouldReturnTrueForInverseEqualitye() throws Exception {
   CustomAssert customAssert = new CustomAssert();
   CustomIs customIs = CustomIs.not().equalTo("Hello");
   assertTrue(customAssert.that("Hellsdso", customIs));
 }
コード例 #3
0
 @Test(expected = Exception.class)
 public void shouldThrowException() throws Exception {
   CustomAssert customAssert = new CustomAssert();
   customAssert.that("", null);
 }