Examples of TestDescription


Examples of org.fest.assertions.internal.TestDescription

    factory = shouldBeEqual(8f, 6f, offset(1f), 2f);
  }

  @Test
  public void should_create_error_message() {
    String message = factory.create(new TestDescription("Test"));
    assertEquals("[Test] expecting:\n <8.0f> to be close to <6.0f> within offset <1.0f> but offset was <2.0f>", message);
  }
View Full Code Here

Examples of org.fest.assertions.internal.TestDescription

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

  @Test
  public void should_create_error_message() {
    String message = factory.create(new TestDescription("Test"));
    assertEquals(
        "[Test] expecting:\n<'Yoda'> to have exactly the same type as:<java.io.File> but was:<java.lang.String>",
        message);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.