use of org.assertj.core.presentation.Representation in project assertj-core by joel-costigliola.
the class BasicErrorMessageFactory_create_Test method should_implement_toString.
@Test
public void should_implement_toString() {
Description description = new TestDescription("Test");
Representation representation = new StandardRepresentation();
String formattedMessage = "[Test] Hello Yoda";
when(formatter.format(description, representation, "Hello %s", "Yoda")).thenReturn(formattedMessage);
assertThat(factory.create(description, representation)).isEqualTo(formattedMessage);
}
Aggregations