예제 #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");
 }