コード例 #1
0
 @Test
 public void should_return_this() {
   CharacterAssert returned = assertions.isLowerCase();
   assertSame(assertions, returned);
 }
コード例 #2
0
 @Test
 public void should_verify_that_actual_is_lowercase() {
   assertions.isLowerCase();
   verify(characters).assertLowerCase(assertions.info, assertions.actual);
 }
 @Test
 public void should_return_this() {
   CharacterAssert returned = assertions.isGreaterThanOrEqualTo('b');
   assertSame(assertions, returned);
 }
コード例 #4
0
 @Before
 public void setUp() {
   characters = mock(Characters.class);
   assertions = new CharacterAssert('a');
   assertions.characters = characters;
 }
 @Test
 public void should_verify_that_actual_is_greater_than_expected() {
   assertions.isGreaterThanOrEqualTo('b');
   verify(characters).assertGreaterThanOrEqualTo(assertions.info, assertions.actual, 'b');
 }