use of org.assertj.core.internal.TestDescription in project assertj-core by joel-costigliola.
the class ShouldBeDone_create_Test method should_create_error_message.
@Test
public void should_create_error_message() throws Exception {
String error = shouldBeDone(new CompletableFuture<>()).create(new TestDescription("TEST"));
assertThat(error).isEqualTo(format("[TEST] %n" + "Expecting%n" + " <CompletableFuture[Incomplete]>%n" + "to be done.%n%s", WARNING));
}
use of org.assertj.core.internal.TestDescription in project assertj-core by joel-costigliola.
the class ShouldNotBeDone_create_Test method should_create_error_message.
@Test
public void should_create_error_message() throws Exception {
String error = shouldNotBeDone(CompletableFuture.completedFuture("done")).create(new TestDescription("TEST"));
assertThat(error).isEqualTo(format("[TEST] %n" + "Expecting%n" + " <CompletableFuture[Completed: \"done\"]>%n" + "not to be done.%n%s", WARNING));
}
use of org.assertj.core.internal.TestDescription in project assertj-core by joel-costigliola.
the class ShouldNotBeExactlyInstance_create_Test method should_create_error_message.
@Test
public void should_create_error_message() {
String message = factory.create(new TestDescription("Test"), new StandardRepresentation());
assertThat(message).isEqualTo(format("[Test] %n" + "Expecting%n" + " <\"Yoda\">%n" + "not to be of exact type:%n" + " <java.lang.String>"));
}
use of org.assertj.core.internal.TestDescription in project assertj-core by joel-costigliola.
the class ShouldNotBeOfClassIn_Test method should_create_error_message.
@Test
public void should_create_error_message() {
String message = factory.create(new TestDescription("Test"), new StandardRepresentation());
assertThat(message).isEqualTo(String.format("[Test] %nExpecting:%n <\"Yoda\">%nnot to be of any type in:%n <[java.lang.Long, java.lang.String]>%nbut was of type:<java.lang.String>"));
}
use of org.assertj.core.internal.TestDescription in project assertj-core by joel-costigliola.
the class ShouldNotBeSame_create_Test method should_create_error_message.
@Test
public void should_create_error_message() {
String message = factory.create(new TestDescription("Test"), new StandardRepresentation());
assertThat(message).isEqualTo(String.format("[Test] %nExpected not same:<\"Yoda\">"));
}
Aggregations