Search in sources :

Example 16 with Description

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);
}
Also used : Description(org.assertj.core.description.Description) TextDescription(org.assertj.core.description.TextDescription) TextDescription(org.assertj.core.description.TextDescription) Test(org.junit.Test)

Aggregations

Description (org.assertj.core.description.Description)16 Test (org.junit.Test)13 EmptyTextDescription.emptyDescription (org.assertj.core.description.EmptyTextDescription.emptyDescription)6 TestDescription (org.assertj.core.internal.TestDescription)5 TextDescription (org.assertj.core.description.TextDescription)4 Map (java.util.Map)3 Ignore (org.junit.Ignore)3 ArrayList (java.util.ArrayList)2 StandardRepresentation (org.assertj.core.presentation.StandardRepresentation)2 UseDataProvider (com.tngtech.java.junit.dataprovider.UseDataProvider)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Set (java.util.Set)1 BasicErrorMessageFactory (org.assertj.core.error.BasicErrorMessageFactory)1 Representation (org.assertj.core.presentation.Representation)1 TestData.someDescription (org.assertj.core.test.TestData.someDescription)1