Class AbstractJobStreamsAssert<SELF extends AbstractJobStreamsAssert<SELF,T>,T extends JobStreamEndpoint.JobStream>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,Collection<T>>
org.assertj.core.api.AbstractIterableAssert<SELF,Collection<T>,T,org.assertj.core.api.ObjectAssert<T>>
org.assertj.core.api.AbstractCollectionAssert<SELF,Collection<T>,T,org.assertj.core.api.ObjectAssert<T>>
io.camunda.zeebe.qa.util.jobstream.AbstractJobStreamsAssert<SELF,T>
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,,Collection<T>> org.assertj.core.api.Descriptable<SELF>,org.assertj.core.api.EnumerableAssert<SELF,,T> org.assertj.core.api.ExtensionPoints<SELF,,Collection<T>> org.assertj.core.api.ObjectEnumerableAssert<SELF,T>
- Direct Known Subclasses:
JobStreamActuatorAssert.ClientJobStreamsAssert,JobStreamActuatorAssert.RemoteJobStreamsAssert
public abstract class AbstractJobStreamsAssert<SELF extends AbstractJobStreamsAssert<SELF,T>,T extends JobStreamEndpoint.JobStream>
extends org.assertj.core.api.AbstractCollectionAssert<SELF,Collection<T>,T,org.assertj.core.api.ObjectAssert<T>>
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractIterableAssert
iterablesFields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoNotHaveJobType(String jobType) Asserts that the given service does not contain any streams for the given stream type.doNotHaveWorker(String worker) Asserts that the given service does not contain any streams for the given worker name.static org.assertj.core.api.Condition<JobStreamEndpoint.RemoteJobStream> hasConsumerCount(int count) Returns a condition which checks that a stream has the expected amount of consumers.static org.assertj.core.api.Condition<JobStreamEndpoint.RemoteJobStream> hasConsumerReceivers(Collection<String> receivers) Returns a condition which checks that a stream consumers contains exactly the given receivers, in any order.static <T extends JobStreamEndpoint.JobStream>
org.assertj.core.api.Condition<T> hasFetchVariables(String... variables) Returns a condition which checks that a stream has the given timeout in milliseconds.static <T extends JobStreamEndpoint.JobStream>
org.assertj.core.api.Condition<T> hasJobType(String streamType) Returns a condition which checks that a stream has the given stream type.static <T extends JobStreamEndpoint.JobStream>
org.assertj.core.api.Condition<T> hasTimeout(long timeoutMillis) Returns a condition which checks that a stream has the given timeout in milliseconds.static <T extends JobStreamEndpoint.JobStream>
org.assertj.core.api.Condition<T> Returns a condition which checks that a stream has the given worker name.final SELFhaveExactlyAll(int expectedCount, org.assertj.core.api.Condition<? super T>... conditions) Asserts that the given service contains exactlyexpectedCountstreams which matches all the given conditions.haveJobType(int expectedCount, String jobType) Asserts that the given service contains exactlyexpectedCountstreams for the given job type.haveWorker(int expectedCount, String worker) Asserts that the given service contains exactlyexpectedCountstreams for the given worker name.static org.assertj.core.api.Condition<JobStreamEndpoint.ClientJobStream> isConnectedTo(int... nodeId) Returns a condition which checks that a stream is connected to the given brokers by ID.protected org.assertj.core.api.ObjectAssert<T> Methods inherited from class org.assertj.core.api.AbstractCollectionAssert
isUnmodifiableMethods inherited from class org.assertj.core.api.AbstractIterableAssert
allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, as, as, 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, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainForProxy, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSequenceForProxy, doesNotContainSubsequence, doesNotContainSubsequence, doesNotContainSubsequenceForProxy, doesNotHave, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doesNotHaveSameClassAs, 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, has, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameClassAs, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, hasToString, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, is, isEmpty, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEmpty, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNullOrEmpty, isOfAnyClassIn, isSameAs, isSubsetOf, isSubsetOf, isSubsetOfForProxy, last, last, map, map, map, navigationDescription, newAbstractIterableAssert, newAbstractIterableAssertForProxy, noneMatch, noneSatisfy, noneSatisfy, overridingErrorMessage, satisfiesExactly, satisfiesExactly, satisfiesExactlyForProxy, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrderForProxy, satisfiesOnlyOnce, satisfiesOnlyOnce, satisfiesOnlyOnceForProxy, singleElement, singleElement, size, startsWith, startsWithForProxy, usingComparator, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparatorIgnoringFields, usingRecursiveFieldByFieldElementComparatorOnFields, withFailMessage, withThreadDumpOnError, zipSatisfyMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, descriptionText, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, hasToString, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, describedAs
-
Constructor Details
-
AbstractJobStreamsAssert
-
-
Method Details
-
haveJobType
Asserts that the given service contains exactlyexpectedCountstreams for the given job type.- Parameters:
expectedCount- the exact count of streams to findjobType- the expected type of the streams- Returns:
- itself for chaining
-
haveWorker
Asserts that the given service contains exactlyexpectedCountstreams for the given worker name.- Parameters:
expectedCount- the exact count of streams to findworker- the expected worker property of the streams- Returns:
- itself for chaining
-
doNotHaveWorker
Asserts that the given service does not contain any streams for the given worker name.- Parameters:
worker- the expected worker of the streams- Returns:
- itself for chaining
-
haveExactlyAll
@SafeVarargs public final SELF haveExactlyAll(int expectedCount, org.assertj.core.api.Condition<? super T>... conditions) Asserts that the given service contains exactlyexpectedCountstreams which matches all the given conditions.- Parameters:
expectedCount- the exact count of streams to findconditions- all the condition the streams must match- Returns:
- itself for chaining
-
doNotHaveJobType
Asserts that the given service does not contain any streams for the given stream type.- Parameters:
jobType- the expected job type of the streams- Returns:
- itself for chaining
-
toAssert
- Specified by:
toAssertin classorg.assertj.core.api.AbstractIterableAssert<SELF extends AbstractJobStreamsAssert<SELF,T>, Collection<T extends JobStreamEndpoint.JobStream>, T extends JobStreamEndpoint.JobStream, org.assertj.core.api.ObjectAssert<T extends JobStreamEndpoint.JobStream>>
-
hasJobType
public static <T extends JobStreamEndpoint.JobStream> org.assertj.core.api.Condition<T> hasJobType(String streamType) Returns a condition which checks that a stream has the given stream type. -
hasWorker
public static <T extends JobStreamEndpoint.JobStream> org.assertj.core.api.Condition<T> hasWorker(String workerName) Returns a condition which checks that a stream has the given worker name. -
isConnectedTo
public static org.assertj.core.api.Condition<JobStreamEndpoint.ClientJobStream> isConnectedTo(int... nodeId) Returns a condition which checks that a stream is connected to the given brokers by ID. -
hasTimeout
public static <T extends JobStreamEndpoint.JobStream> org.assertj.core.api.Condition<T> hasTimeout(long timeoutMillis) Returns a condition which checks that a stream has the given timeout in milliseconds. -
hasFetchVariables
public static <T extends JobStreamEndpoint.JobStream> org.assertj.core.api.Condition<T> hasFetchVariables(String... variables) Returns a condition which checks that a stream has the given timeout in milliseconds. -
hasConsumerCount
public static org.assertj.core.api.Condition<JobStreamEndpoint.RemoteJobStream> hasConsumerCount(int count) Returns a condition which checks that a stream has the expected amount of consumers. -
hasConsumerReceivers
public static org.assertj.core.api.Condition<JobStreamEndpoint.RemoteJobStream> hasConsumerReceivers(Collection<String> receivers) Returns a condition which checks that a stream consumers contains exactly the given receivers, in any order.
-