use of org.assertj.core.description.Description in project assertj-core by joel-costigliola.
the class Condition_constructor_with_description_Test method should_set_description.
@Test
public void should_set_description() {
Description d = new TextDescription("always in motion is the future");
Condition<Object> condition = new Condition<Object>(d) {
@Override
public boolean matches(Object value) {
return false;
}
};
assertThat(condition.description).isSameAs(d);
}
Aggregations