Class JavaFileObjectKindAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<JavaFileObjectKindAssert,JavaFileObject.Kind>
io.github.ascopes.jct.assertions.AbstractEnumAssert<JavaFileObjectKindAssert,JavaFileObject.Kind>
io.github.ascopes.jct.assertions.JavaFileObjectKindAssert
- All Implemented Interfaces:
Assert<JavaFileObjectKindAssert,
,JavaFileObject.Kind> Descriptable<JavaFileObjectKindAssert>
,ExtensionPoints<JavaFileObjectKindAssert,
JavaFileObject.Kind>
public final class JavaFileObjectKindAssert
extends AbstractEnumAssert<JavaFileObjectKindAssert,JavaFileObject.Kind>
Assertions for an individual
Java file object kind
.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ConstructorDescriptionInitialize this assertion type. -
Method Summary
Modifier and TypeMethodDescriptionPerform an assertion on the file extension of the kind.isClass()
Assert that the kind is aJavaFileObject.Kind.CLASS
.isHtml()
Assert that the kind is anHTML source
.isOther()
Assert that the kind issome other unknown kind
.isSource()
Assert that the kind is aJavaFileObject.Kind.SOURCE
.Methods inherited from class io.github.ascopes.jct.assertions.AbstractEnumAssert
isAnyOf, isAnyOfElements, isNoneOf, isNoneOfElements
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
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, as, as, describedAs, describedAs
-
Constructor Details
-
JavaFileObjectKindAssert
Initialize this assertion type.- Parameters:
value
- the value to assert on.
-
-
Method Details
-
isSource
Assert that the kind is aJavaFileObject.Kind.SOURCE
.- Returns:
- this assertion object.
- Throws:
AssertionError
- if the kind is null.
-
isClass
Assert that the kind is aJavaFileObject.Kind.CLASS
.- Returns:
- this assertion object.
- Throws:
AssertionError
- if the kind is null.
-
isHtml
Assert that the kind is anHTML source
.- Returns:
- this assertion object.
- Throws:
AssertionError
- if the kind is null.
-
isOther
Assert that the kind issome other unknown kind
.- Returns:
- this assertion object.
- Throws:
AssertionError
- if the kind is null.
-
extension
Perform an assertion on the file extension of the kind.- Returns:
- the assertions for the file extension of the kind.
- Throws:
AssertionError
- if the kind is null.
-