Class ServerPluginAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<ServerPluginAssert,@Nullable IServerControl>
nl.pim16aap2.lightkeeper.framework.assertions.ServerPluginAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<ServerPluginAssert,,IServerControl> org.assertj.core.api.Descriptable<ServerPluginAssert>,org.assertj.core.api.ExtensionPoints<ServerPluginAssert,IServerControl>
public final class ServerPluginAssert
extends org.assertj.core.api.AbstractAssert<ServerPluginAssert,@Nullable IServerControl>
Eager assertions for a named plugin, re-querying the server on every evaluation.
Both enabled-state assertions require the plugin to be present. Inherited null checks refer to the server
subject; use isPresent() or isAbsent() for plugin registration.
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
info, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionhasVersion(String expectedVersion) Asserts that the plugin is present with exactly the requested version string.isAbsent()Asserts that the plugin is not registered at this observation.Asserts that the plugin is present and disabled.Asserts that the plugin is present and enabled.Asserts that the plugin is registered, whether enabled or disabled.Methods inherited from class org.assertj.core.api.AbstractAssert
actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Method Details
-
isPresent
Asserts that the plugin is registered, whether enabled or disabled.- Returns:
- This assertion for fluent chaining.
-
isAbsent
Asserts that the plugin is not registered at this observation.- Returns:
- This assertion for fluent chaining.
-
isEnabled
Asserts that the plugin is present and enabled.- Returns:
- This assertion for fluent chaining.
-
isDisabled
Asserts that the plugin is present and disabled. A missing plugin fails this assertion.- Returns:
- This assertion for fluent chaining.
-
hasVersion
Asserts that the plugin is present with exactly the requested version string.- Parameters:
expectedVersion- Expected version; compared without semantic-version interpretation.- Returns:
- This assertion for fluent chaining.
-