Class DiagnosticKindAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<DiagnosticKindAssert, Diagnostic.Kind>
io.github.ascopes.jct.assertions.AbstractEnumAssert<DiagnosticKindAssert, Diagnostic.Kind>
io.github.ascopes.jct.assertions.DiagnosticKindAssert
- All Implemented Interfaces:
Assert<DiagnosticKindAssert, Diagnostic.Kind>, Descriptable<DiagnosticKindAssert>, ExtensionPoints<DiagnosticKindAssert, Diagnostic.Kind>
public final class DiagnosticKindAssert
extends AbstractEnumAssert<DiagnosticKindAssert, Diagnostic.Kind>
Assertions for an individual diagnostic kind.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Field Summary
Fields inherited from class AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this assertion type. -
Method Summary
Modifier and TypeMethodDescriptionAssert that the kind isDiagnostic.Kind.WARNING.isError()Assert that the kind isDiagnostic.Kind.ERROR.Assert that the kind isDiagnostic.Kind.MANDATORY_WARNING.isNote()Assert that the kind isDiagnostic.Kind.NOTE.isOther()Assert that the kind isDiagnostic.Kind.OTHER.Assert that the kind is eitherDiagnostic.Kind.WARNINGorDiagnostic.Kind.MANDATORY_WARNING.Assert that the kind isDiagnostic.Kind.ERROR,Diagnostic.Kind.WARNING, orDiagnostic.Kind.MANDATORY_WARNING.Methods inherited from class AbstractEnumAssert
isAnyOf, isAnyOfElements, isNoneOf, isNoneOfElementsMethods inherited from class AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
DiagnosticKindAssert
Initialize this assertion type.- Parameters:
value- the value to assert on.
-
-
Method Details
-
isError
Assert that the kind isDiagnostic.Kind.ERROR.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is notDiagnostic.Kind.ERROR.
-
isWarningOrError
Assert that the kind isDiagnostic.Kind.ERROR,Diagnostic.Kind.WARNING, orDiagnostic.Kind.MANDATORY_WARNING.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is not any ofDiagnostic.Kind.ERROR,Diagnostic.Kind.WARNING, orDiagnostic.Kind.MANDATORY_WARNING.
-
isWarning
Assert that the kind is eitherDiagnostic.Kind.WARNINGorDiagnostic.Kind.MANDATORY_WARNING.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is not eitherDiagnostic.Kind.WARNINGorDiagnostic.Kind.MANDATORY_WARNING.
-
isCustomWarning
Assert that the kind isDiagnostic.Kind.WARNING.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is notDiagnostic.Kind.WARNING.
-
isMandatoryWarning
Assert that the kind isDiagnostic.Kind.MANDATORY_WARNING.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is notDiagnostic.Kind.MANDATORY_WARNING.
-
isNote
Assert that the kind isDiagnostic.Kind.NOTE.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is notDiagnostic.Kind.NOTE.
-
isOther
Assert that the kind isDiagnostic.Kind.OTHER.- Returns:
- this assertion object.
- Throws:
AssertionError- if this value is null, or the value is notDiagnostic.Kind.OTHER.
-