Package org.fest.assertions.internal

Examples of org.fest.assertions.internal.TestDescription


    factory = shouldNotBeExactlyInstance("Yoda", File.class);
  }

  @Test
  public void should_create_error_message() {
    String message = factory.create(new TestDescription("Test"));
    assertEquals(
        "[Test] expecting:\n<'Yoda'> to have not exactly the same type as:<java.io.File> but was:<java.lang.String>",
        message);
  }
View Full Code Here


    factory = shouldNotBeEmpty();
  }

  @Test
  public void should_create_error_message() {
    String message = factory.create(new TestDescription("Test"));
    assertEquals("[Test] expecting:\n actual not to be empty", message);
  }
View Full Code Here

  private final Description description;

  @Parameters
  public static List<Object[]> parameters() {
    return newArrayList(new Object[][] {
        { null }, { new TestDescription(null) }, { new TestDescription("") }
    });
  }
View Full Code Here

    factory.formatter = formatter;
  }

  @Test
  public void should_implement_toString() {
    Description description = new TestDescription("Test");
    String formattedMessage = "[Test] Hello Yoda";
    when(formatter.format(description, "Hello %s", "Yoda")).thenReturn(formattedMessage);
    assertEquals(formattedMessage, factory.create(description));
  }
View Full Code Here

  }

  @Test
  public void should_create_error_message() {
    assertEquals("[Test] some elements are not mutually comparable in group:<['b', 5, 'a']>",
        factory.create(new TestDescription("Test")));
  }
View Full Code Here

TOP

Related Classes of org.fest.assertions.internal.TestDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.