Interface ErrorMessageFactory

All Known Implementing Classes:
AbstractShouldHaveTextContent, BasicErrorMessageFactory, ConditionAndGroupGenericParameterTypeShouldBeTheSame, ElementsShouldBe, ElementsShouldBeAtLeast, ElementsShouldBeAtMost, ElementsShouldBeExactly, ElementsShouldHave, ElementsShouldHaveAtLeast, ElementsShouldHaveAtMost, ElementsShouldHaveExactly, ElementsShouldNotBe, ElementsShouldNotBeAtLeast, ElementsShouldNotBeAtMost, ElementsShouldNotBeExactly, ElementsShouldNotHave, ElementsShouldNotHaveAtLeast, ElementsShouldNotHaveAtMost, ElementsShouldNotHaveExactly, ShouldBe, ShouldBeAbsolutePath, ShouldBeAfter, ShouldBeAfterOrEqualsTo, ShouldBeAtIndex, ShouldBeBefore, ShouldBeBeforeOrEqualsTo, ShouldBeBetween, ShouldBeCloseTo, ShouldBeDirectory, ShouldBeEmpty, ShouldBeEqualIgnoringCase, ShouldBeEqualImages, ShouldBeEqualWithinOffset, ShouldBeExactlyInstanceOf, ShouldBeExecutable, ShouldBeFile, ShouldBeGreater, ShouldBeGreaterOrEqual, ShouldBeIn, ShouldBeInSameDay, ShouldBeInSameHour, ShouldBeInSameMillisecond, ShouldBeInSameMinute, ShouldBeInSameMonth, ShouldBeInSameSecond, ShouldBeInSameYear, ShouldBeInstance, ShouldBeInstanceOfAny, ShouldBeInTheFuture, ShouldBeInThePast, ShouldBeLenientEqualByAccepting, ShouldBeLenientEqualByIgnoring, ShouldBeLess, ShouldBeLessOrEqual, ShouldBeLowerCase, ShouldBeNullOrEmpty, ShouldBeOfClassIn, ShouldBeReadable, ShouldBeRelativePath, ShouldBeSame, ShouldBeSorted, ShouldBeSubsetOf, ShouldBeToday, ShouldBeUpperCase, ShouldBeWithin, ShouldBeWritable, ShouldContain, ShouldContainAtIndex, ShouldContainExactly, ShouldContainKey, ShouldContainNull, ShouldContainOnly, ShouldContainSequence, ShouldContainString, ShouldContainStringOnlyOnce, ShouldContainValue, ShouldEndWith, ShouldExist, ShouldHave, ShouldHaveAtIndex, ShouldHaveBinaryContent, ShouldHaveContent, ShouldHaveEqualContent, ShouldHaveMessage, ShouldHaveNoCause, ShouldHaveSameClass, ShouldHaveSameSizeAs, ShouldHaveSize, ShouldHaveTime, ShouldMatchPattern, ShouldNotBe, ShouldNotBeBetween, ShouldNotBeEmpty, ShouldNotBeEqual, ShouldNotBeEqualImages, ShouldNotBeExactlyInstanceOf, ShouldNotBeIn, ShouldNotBeInstance, ShouldNotBeInstanceOfAny, ShouldNotBeNull, ShouldNotBeOfClassIn, ShouldNotBeSame, ShouldNotContain, ShouldNotContainAtIndex, ShouldNotContainKey, ShouldNotContainNull, ShouldNotContainString, ShouldNotContainValue, ShouldNotExist, ShouldNotHave, ShouldNotHaveDuplicates, ShouldNotHaveSameClass, ShouldNotMatchPattern, ShouldStartWith

public interface ErrorMessageFactory
Factory of error messages.
Author:
Alex Ruiz
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new error message as a result of a failed assertion.
  • Method Details

    • create

      String create(Description d)
      Creates a new error message as a result of a failed assertion.
      Parameters:
      d - the description of the failed assertion.
      Returns:
      the created error message.