Ejemplo n.º 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");
 }
Ejemplo n.º 2
0
 @Test
 public void shouldSetTextDescription() {
   LongAssert assertion = new LongAssert(8);
   assertNull(assertion.description());
   assertion.as("A Test");
   assertEquals(assertion.description(), "A Test");
 }