Class ExpectedLoggingAssert

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<org.assertj.core.api.ListAssert<LogEvent>,​java.util.List<? extends LogEvent>>, org.assertj.core.api.Descriptable<org.assertj.core.api.ListAssert<LogEvent>>, org.assertj.core.api.EnumerableAssert<org.assertj.core.api.ListAssert<LogEvent>,​LogEvent>, org.assertj.core.api.ExtensionPoints<org.assertj.core.api.ListAssert<LogEvent>,​java.util.List<? extends LogEvent>>, org.assertj.core.api.IndexedObjectEnumerableAssert<org.assertj.core.api.ListAssert<LogEvent>,​LogEvent>, org.assertj.core.api.ObjectEnumerableAssert<org.assertj.core.api.ListAssert<LogEvent>,​LogEvent>

    public class ExpectedLoggingAssert
    extends org.assertj.core.api.ListAssert<LogEvent>
    Assertion methods for de.neuland.assertj.logging.ExpectedLogging.

    To create an instance of this class, invoke de.neuland.assertj.logging.ExpectedLoggingAssertions#assertThat(ExpectedLogging).

    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractIterableAssert

        iterables
      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself, objects, throwUnsupportedExceptionOnEquals
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.assertj.core.api.ListAssert<LogEvent> errorMessages()  
      ExpectedLoggingAssert hasErrorMessage​(java.lang.String actualMessage)  
      ExpectedLoggingAssert hasErrorMessage​(java.lang.String message, java.lang.Throwable throwable)  
      ExpectedLoggingAssert hasErrorMessageMatching​(java.lang.String regex)  
      ExpectedLoggingAssert hasErrorMessageMatching​(java.lang.String regex, java.lang.Throwable throwable)  
      ExpectedLoggingAssert hasInfoMessage​(java.lang.String actualMessage)  
      ExpectedLoggingAssert hasInfoMessageMatching​(java.lang.String regex)  
      ExpectedLoggingAssert hasNoErrorMessage()  
      org.assertj.core.api.ListAssert<LogEvent> hasNoInfoMessage()  
      ExpectedLoggingAssert hasNoWarningMessage()  
      ExpectedLoggingAssert hasWarningMessage​(java.lang.String actualMessage)  
      ExpectedLoggingAssert hasWarningMessage​(java.lang.String actualMessage, java.lang.Throwable actualDetail)  
      ExpectedLoggingAssert hasWarningMessageMatching​(java.lang.String regex)  
      ExpectedLoggingAssert hasWarningMessageMatching​(java.lang.String regex, java.lang.Throwable throwable)  
      org.assertj.core.api.ListAssert<LogEvent> infoMessages()  
      org.assertj.core.api.ListAssert<LogEvent> warningMessages()  
      • Methods inherited from class org.assertj.core.api.ListAssert

        isEqualTo, isExactlyInstanceOf, isInstanceOf, isInstanceOfAny, isNotExactlyInstanceOf, isNotInstanceOf, isNotInstanceOfAny, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, newAbstractIterableAssert, startsWithForProxy
      • Methods inherited from class org.assertj.core.api.FactoryBasedNavigableListAssert

        toAssert
      • Methods inherited from class org.assertj.core.api.AbstractListAssert

        as, as, contains, describedAs, describedAs, doesNotContain, doesNotHave, doesNotHaveSameClassAs, has, has, hasSameClassAs, hasToString, is, is, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isSorted, isSortedAccordingTo, overridingErrorMessage, satisfies, usingComparator, usingComparator, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, withFailMessage, withThreadDumpOnError
      • Methods inherited from class org.assertj.core.api.AbstractCollectionAssert

        isUnmodifiable
      • Methods inherited from class org.assertj.core.api.AbstractIterableAssert

        allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsAnyOfForProxy, containsExactly, containsExactlyElementsOf, containsExactlyForProxy, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsExactlyInAnyOrderForProxy, containsForProxy, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyForProxy, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsOnlyOnceForProxy, containsSequence, containsSequence, containsSequenceForProxy, containsSubsequence, containsSubsequence, containsSubsequenceForProxy, doesNotContain, doesNotContainAnyElementsOf, doesNotContainForProxy, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSequenceForProxy, doesNotContainSubsequence, doesNotContainSubsequence, doesNotContainSubsequenceForProxy, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, element, element, elements, endsWith, endsWith, endsWithForProxy, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnAssertions, filteredOnNull, first, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtractingForProxy, flatMap, flatMap, flatMap, flatMap, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, isSubsetOf, isSubsetOfForProxy, last, last, map, map, map, navigationDescription, newAbstractIterableAssertForProxy, noneMatch, noneSatisfy, noneSatisfy, satisfiesExactly, satisfiesExactly, satisfiesExactlyForProxy, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrderForProxy, singleElement, singleElement, size, startsWith, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparatorIgnoringFields, usingRecursiveFieldByFieldElementComparatorOnFields, zipSatisfy
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        asInstanceOf, asList, assertionError, asString, descriptionText, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentation
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.assertj.core.api.Descriptable

        as
      • Methods inherited from interface org.assertj.core.api.EnumerableAssert

        hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, isEmpty, isNotEmpty, isNullOrEmpty
      • Methods inherited from interface org.assertj.core.api.ObjectEnumerableAssert

        allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, endsWith, endsWith, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, isSubsetOf, noneMatch, noneSatisfy, noneSatisfy, satisfiesExactly, satisfiesExactly, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, startsWith
    • Method Detail

      • hasErrorMessage

        public ExpectedLoggingAssert hasErrorMessage​(java.lang.String message,
                                                     java.lang.Throwable throwable)
      • hasErrorMessageMatching

        public ExpectedLoggingAssert hasErrorMessageMatching​(java.lang.String regex)
      • hasErrorMessageMatching

        public ExpectedLoggingAssert hasErrorMessageMatching​(java.lang.String regex,
                                                             java.lang.Throwable throwable)
      • errorMessages

        public org.assertj.core.api.ListAssert<LogEvent> errorMessages()
      • hasWarningMessage

        public ExpectedLoggingAssert hasWarningMessage​(java.lang.String actualMessage,
                                                       java.lang.Throwable actualDetail)
      • hasWarningMessageMatching

        public ExpectedLoggingAssert hasWarningMessageMatching​(java.lang.String regex)
      • hasWarningMessageMatching

        public ExpectedLoggingAssert hasWarningMessageMatching​(java.lang.String regex,
                                                               java.lang.Throwable throwable)
      • warningMessages

        public org.assertj.core.api.ListAssert<LogEvent> warningMessages()
      • hasInfoMessageMatching

        public ExpectedLoggingAssert hasInfoMessageMatching​(java.lang.String regex)
      • hasNoInfoMessage

        public org.assertj.core.api.ListAssert<LogEvent> hasNoInfoMessage()
      • infoMessages

        public org.assertj.core.api.ListAssert<LogEvent> infoMessages()