Package org.fest.assertions

Examples of org.fest.assertions.Description


* @author Yvonne Wang
*/
public class Condition_toString_Test {
  @Test
  public void should_return_description_text() {
    Description description = new Description() {
      @Override
      public String value() {
        return "Hello World!";
      }
    };
View Full Code Here


    assertThat(condition.toString()).isEqualTo("Hello World!");
  }

  @Test
  public void should_return_condition_type_if_description_is_null() {
    Description noDescription = null;
    MyCondition condition = new MyCondition(noDescription);
    assertThat(condition.toString()).isEqualTo(concat("condition of type [", MyCondition.class.getName(), "]"));
  }
View Full Code Here

TOP

Related Classes of org.fest.assertions.Description

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.