コード例 #1
0
 @Test
 public void shouldSetDescriptionSafelyForGroovy() {
   LongAssert assertion = new LongAssert(8);
   assertNull(assertion.description());
   assertion.describedAs(new BasicDescription("A Test"));
   assertEquals(assertion.description(), "A Test");
 }
コード例 #2
0
 @Test
 public void shouldSetTextDescription() {
   LongAssert assertion = new LongAssert(8);
   assertNull(assertion.description());
   assertion.as("A Test");
   assertEquals(assertion.description(), "A Test");
 }