/** * {@inheritDoc} */ @Override public SELF contains(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertContains(info, actual, values); return myself; }
/** * {@inheritDoc} */ @Override public SELF contains(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertContains(info, actual, values); return myself; }
/** * {@inheritDoc} */ @Override public S contains(@SuppressWarnings("unchecked") T... values) { iterables.assertContains(info, actual, values); return myself; }
/** * Verifies that the actual Query's queryParameters contains the given QueryParameter elements. * @param queryParameters the given elements that should be contained in actual Query's queryParameters. * @return this assertion object. * @throws AssertionError if the actual Query's queryParameters does not contain all given QueryParameter elements. */ public QueryAssert hasQueryParameters(QueryParameter... queryParameters) { // check that actual Query we want to make assertions on is not null. isNotNull(); // check that given QueryParameter varargs is not null. if (queryParameters == null) throw new AssertionError("Expecting queryParameters 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.getQueryParameters(), queryParameters); // return the current assertion for method chaining return this; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys contains the given Long elements in Collection. * @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(java.util.Collection<? extends Long> jobKeys) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that given Long collection is not null. if (jobKeys == null) { failWithMessage("Expecting jobKeys parameter not to be null."); return myself; // to fool Eclipse "Null pointer access" warning on toArray. } // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getJobKeys(), jobKeys.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources contains the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements in Collection. * @param resources the given elements that should be contained in actual DeploymentRecordValue's resources. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's resources does not contain all given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. */ public S hasResources(java.util.Collection<? extends io.zeebe.exporter.record.value.deployment.DeploymentResource> resources) { // check that actual DeploymentRecordValue we want to make assertions on is not null. isNotNull(); // check that given io.zeebe.exporter.record.value.deployment.DeploymentResource collection is not null. if (resources == null) { failWithMessage("Expecting resources parameter not to be null."); return myself; // to fool Eclipse "Null pointer access" warning on toArray. } // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getResources(), resources.toArray()); // 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 in Collection. * @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(java.util.Collection<? extends 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 collection is not null. if (members == null) { failWithMessage("Expecting members parameter not to be null."); return myself; // to fool Eclipse "Null pointer access" warning on toArray. } // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getMembers(), members.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs contains the given JobRecordValue elements in Collection. * @param jobs the given elements that should be contained in actual JobBatchRecordValue's jobs. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobs does not contain all given JobRecordValue elements. */ public S hasJobs(java.util.Collection<? extends JobRecordValue> jobs) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that given JobRecordValue collection is not null. if (jobs == null) { failWithMessage("Expecting jobs parameter not to be null."); return myself; // to fool Eclipse "Null pointer access" warning on toArray. } // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getJobs(), jobs.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's deployedWorkflows contains the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements in Collection. * @param deployedWorkflows the given elements that should be contained in actual DeploymentRecordValue's deployedWorkflows. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's deployedWorkflows does not contain all given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. */ public S hasDeployedWorkflows(java.util.Collection<? extends io.zeebe.exporter.record.value.deployment.DeployedWorkflow> deployedWorkflows) { // check that actual DeploymentRecordValue we want to make assertions on is not null. isNotNull(); // check that given io.zeebe.exporter.record.value.deployment.DeployedWorkflow collection is not null. if (deployedWorkflows == null) { failWithMessage("Expecting deployedWorkflows parameter not to be null."); return myself; // to fool Eclipse "Null pointer access" warning on toArray. } // check with standard error message, to set another message call: info.overridingErrorMessage("my error message"); Iterables.instance().assertContains(info, actual.getDeployedWorkflows(), deployedWorkflows.toArray()); // 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 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 DeploymentRecordValue's deployedWorkflows contains the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. * @param deployedWorkflows the given elements that should be contained in actual DeploymentRecordValue's deployedWorkflows. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's deployedWorkflows does not contain all given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. */ public S hasDeployedWorkflows(io.zeebe.exporter.record.value.deployment.DeployedWorkflow... deployedWorkflows) { // check that actual DeploymentRecordValue we want to make assertions on is not null. isNotNull(); // check that given io.zeebe.exporter.record.value.deployment.DeployedWorkflow varargs is not null. if (deployedWorkflows == null) failWithMessage("Expecting deployedWorkflows 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.getDeployedWorkflows(), deployedWorkflows); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs contains the given JobRecordValue elements. * @param jobs the given elements that should be contained in actual JobBatchRecordValue's jobs. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobs does not contain all given JobRecordValue elements. */ public S hasJobs(JobRecordValue... jobs) { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // check that given JobRecordValue varargs is not null. if (jobs == null) failWithMessage("Expecting jobs 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.getJobs(), jobs); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources contains the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. * @param resources the given elements that should be contained in actual DeploymentRecordValue's resources. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's resources does not contain all given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. */ public S hasResources(io.zeebe.exporter.record.value.deployment.DeploymentResource... resources) { // check that actual DeploymentRecordValue we want to make assertions on is not null. isNotNull(); // check that given io.zeebe.exporter.record.value.deployment.DeploymentResource varargs is not null. if (resources == null) failWithMessage("Expecting resources 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.getResources(), resources); // return the current assertion for method chaining return myself; }