/** * Verifies that the actual JobBatchRecordValue is truncated. * @return this assertion object. * @throws AssertionError - if the actual JobBatchRecordValue is not truncated. */ public S isTruncated() { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that property call/field access is true if (!actual.isTruncated()) { failWithMessage("\nExpecting that actual JobBatchRecordValue is truncated but is not."); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's amount is equal to the given one. * @param amount the given amount to compare the actual JobBatchRecordValue's amount to. * @return this assertion object. * @throws AssertionError - if the actual JobBatchRecordValue's amount is not equal to the given one. */ public S hasAmount(int amount) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting amount of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check int actualAmount = actual.getAmount(); if (actualAmount != amount) { failWithMessage(assertjErrorMessage, actual, amount, actualAmount); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual IncidentRecordValue's jobKey is equal to the given one. * @param jobKey the given jobKey to compare the actual IncidentRecordValue's jobKey to. * @return this assertion object. * @throws AssertionError - if the actual IncidentRecordValue's jobKey is not equal to the given one. */ public S hasJobKey(long jobKey) { // check that actual IncidentRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting jobKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualJobKey = actual.getJobKey(); if (actualJobKey != jobKey) { failWithMessage(assertjErrorMessage, actual, jobKey, actualJobKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual MessageStartEventSubscriptionRecordValue's workflowKey is equal to the given one. * @param workflowKey the given workflowKey to compare the actual MessageStartEventSubscriptionRecordValue's workflowKey to. * @return this assertion object. * @throws AssertionError - if the actual MessageStartEventSubscriptionRecordValue's workflowKey is not equal to the given one. */ public S hasWorkflowKey(long workflowKey) { // check that actual MessageStartEventSubscriptionRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting workflowKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualWorkflowKey = actual.getWorkflowKey(); if (actualWorkflowKey != workflowKey) { failWithMessage(assertjErrorMessage, actual, workflowKey, actualWorkflowKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual WorkflowInstanceSubscriptionRecordValue's elementInstanceKey is equal to the given one. * @param elementInstanceKey the given elementInstanceKey to compare the actual WorkflowInstanceSubscriptionRecordValue's elementInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual WorkflowInstanceSubscriptionRecordValue's elementInstanceKey is not equal to the given one. */ public S hasElementInstanceKey(long elementInstanceKey) { // check that actual WorkflowInstanceSubscriptionRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting elementInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualElementInstanceKey = actual.getElementInstanceKey(); if (actualElementInstanceKey != elementInstanceKey) { failWithMessage(assertjErrorMessage, actual, elementInstanceKey, actualElementInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual WorkflowInstanceRecordValue's workflowInstanceKey is equal to the given one. * @param workflowInstanceKey the given workflowInstanceKey to compare the actual WorkflowInstanceRecordValue's workflowInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual WorkflowInstanceRecordValue's workflowInstanceKey is not equal to the given one. */ public S hasWorkflowInstanceKey(long workflowInstanceKey) { // check that actual WorkflowInstanceRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting workflowInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualWorkflowInstanceKey = actual.getWorkflowInstanceKey(); if (actualWorkflowInstanceKey != workflowInstanceKey) { failWithMessage(assertjErrorMessage, actual, workflowInstanceKey, actualWorkflowInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual TimerRecordValue's dueDate is equal to the given one. * @param dueDate the given dueDate to compare the actual TimerRecordValue's dueDate to. * @return this assertion object. * @throws AssertionError - if the actual TimerRecordValue's dueDate is not equal to the given one. */ public S hasDueDate(long dueDate) { // check that actual TimerRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting dueDate of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualDueDate = actual.getDueDate(); if (actualDueDate != dueDate) { failWithMessage(assertjErrorMessage, actual, dueDate, actualDueDate); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual TimerRecordValue's elementInstanceKey is equal to the given one. * @param elementInstanceKey the given elementInstanceKey to compare the actual TimerRecordValue's elementInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual TimerRecordValue's elementInstanceKey is not equal to the given one. */ public S hasElementInstanceKey(long elementInstanceKey) { // check that actual TimerRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting elementInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualElementInstanceKey = actual.getElementInstanceKey(); if (actualElementInstanceKey != elementInstanceKey) { failWithMessage(assertjErrorMessage, actual, elementInstanceKey, actualElementInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobRecordValue's retries is equal to the given one. * @param retries the given retries to compare the actual JobRecordValue's retries to. * @return this assertion object. * @throws AssertionError - if the actual JobRecordValue's retries is not equal to the given one. */ public S hasRetries(int retries) { // check that actual JobRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting retries of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check int actualRetries = actual.getRetries(); if (actualRetries != retries) { failWithMessage(assertjErrorMessage, actual, retries, actualRetries); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual MessageSubscriptionRecordValue's workflowInstanceKey is equal to the given one. * @param workflowInstanceKey the given workflowInstanceKey to compare the actual MessageSubscriptionRecordValue's workflowInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual MessageSubscriptionRecordValue's workflowInstanceKey is not equal to the given one. */ public S hasWorkflowInstanceKey(long workflowInstanceKey) { // check that actual MessageSubscriptionRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting workflowInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualWorkflowInstanceKey = actual.getWorkflowInstanceKey(); if (actualWorkflowInstanceKey != workflowInstanceKey) { failWithMessage(assertjErrorMessage, actual, workflowInstanceKey, actualWorkflowInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual VariableRecordValue's scopeInstanceKey is equal to the given one. * @param scopeInstanceKey the given scopeInstanceKey to compare the actual VariableRecordValue's scopeInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual VariableRecordValue's scopeInstanceKey is not equal to the given one. */ public S hasScopeInstanceKey(long scopeInstanceKey) { // check that actual VariableRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting scopeInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualScopeInstanceKey = actual.getScopeInstanceKey(); if (actualScopeInstanceKey != scopeInstanceKey) { failWithMessage(assertjErrorMessage, actual, scopeInstanceKey, actualScopeInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual IncidentRecordValue's elementInstanceKey is equal to the given one. * @param elementInstanceKey the given elementInstanceKey to compare the actual IncidentRecordValue's elementInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual IncidentRecordValue's elementInstanceKey is not equal to the given one. */ public S hasElementInstanceKey(long elementInstanceKey) { // check that actual IncidentRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting elementInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualElementInstanceKey = actual.getElementInstanceKey(); if (actualElementInstanceKey != elementInstanceKey) { failWithMessage(assertjErrorMessage, actual, elementInstanceKey, actualElementInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual WorkflowInstanceRecordValue's version is equal to the given one. * @param version the given version to compare the actual WorkflowInstanceRecordValue's version to. * @return this assertion object. * @throws AssertionError - if the actual WorkflowInstanceRecordValue's version is not equal to the given one. */ public S hasVersion(int version) { // check that actual WorkflowInstanceRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting version of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check int actualVersion = actual.getVersion(); if (actualVersion != version) { failWithMessage(assertjErrorMessage, actual, version, actualVersion); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual IncidentRecordValue's workflowInstanceKey is equal to the given one. * @param workflowInstanceKey the given workflowInstanceKey to compare the actual IncidentRecordValue's workflowInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual IncidentRecordValue's workflowInstanceKey is not equal to the given one. */ public S hasWorkflowInstanceKey(long workflowInstanceKey) { // check that actual IncidentRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting workflowInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualWorkflowInstanceKey = actual.getWorkflowInstanceKey(); if (actualWorkflowInstanceKey != workflowInstanceKey) { failWithMessage(assertjErrorMessage, actual, workflowInstanceKey, actualWorkflowInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual MessageSubscriptionRecordValue's elementInstanceKey is equal to the given one. * @param elementInstanceKey the given elementInstanceKey to compare the actual MessageSubscriptionRecordValue's elementInstanceKey to. * @return this assertion object. * @throws AssertionError - if the actual MessageSubscriptionRecordValue's elementInstanceKey is not equal to the given one. */ public S hasElementInstanceKey(long elementInstanceKey) { // check that actual MessageSubscriptionRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting elementInstanceKey of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualElementInstanceKey = actual.getElementInstanceKey(); if (actualElementInstanceKey != elementInstanceKey) { failWithMessage(assertjErrorMessage, actual, elementInstanceKey, actualElementInstanceKey); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual MessageRecordValue's timeToLive is equal to the given one. * @param timeToLive the given timeToLive to compare the actual MessageRecordValue's timeToLive to. * @return this assertion object. * @throws AssertionError - if the actual MessageRecordValue's timeToLive is not equal to the given one. */ public S hasTimeToLive(long timeToLive) { // check that actual MessageRecordValue we want to make assertions on is not null. isNotNull(); // overrides the default error message with a more explicit one String assertjErrorMessage = "\nExpecting timeToLive of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>"; // check long actualTimeToLive = actual.getTimeToLive(); if (actualTimeToLive != timeToLive) { failWithMessage(assertjErrorMessage, actual, timeToLive, actualTimeToLive); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual RaftRecordValue's members contains the given io.zeebe.exporter.record.value.raft.RaftMember elements. * @param members the given elements that should be contained in actual RaftRecordValue's members. * @return this assertion object. * @throws AssertionError if the actual RaftRecordValue's members does not contain all given io.zeebe.exporter.record.value.raft.RaftMember elements. */ public S hasMembers(io.zeebe.exporter.record.value.raft.RaftMember... members) { // check that actual RaftRecordValue we want to make assertions on is not null. isNotNull(); // check that given io.zeebe.exporter.record.value.raft.RaftMember varargs is not null. if (members == null) failWithMessage("Expecting members parameter not to be null."); // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getMembers(), members); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys contains the given Long elements. * @param jobKeys the given elements that should be contained in actual JobBatchRecordValue's jobKeys. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobKeys does not contain all given Long elements. */ public S hasJobKeys(Long... jobKeys) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that given Long varargs is not null. if (jobKeys == null) failWithMessage("Expecting jobKeys parameter not to be null."); // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getJobKeys(), jobKeys); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue is not truncated. * @return this assertion object. * @throws AssertionError - if the actual JobBatchRecordValue is truncated. */ public S isNotTruncated() { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that property call/field access is false if (actual.isTruncated()) { failWithMessage("\nExpecting that actual JobBatchRecordValue is not truncated but is."); } // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys contains <b>only</b> the given Long elements and nothing else in whatever order. * @param jobKeys the given elements that should be contained in actual JobBatchRecordValue's jobKeys. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobKeys does not contain all given Long elements. */ public S hasOnlyJobKeys(Long... jobKeys) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that given Long varargs is not null. if (jobKeys == null) failWithMessage("Expecting jobKeys parameter not to be null."); // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContainsOnly(info, actual.getJobKeys(), jobKeys); // return the current assertion for method chaining return myself; }