/** * {@inheritDoc} */ @Override public SELF containsOnly(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertContainsOnly(info, actual, values); return myself; }
/** * {@inheritDoc} */ @Override public SELF containsOnly(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertContainsOnly(info, actual, values); return myself; }
/** * {@inheritDoc} */ @Override public S containsOnly(@SuppressWarnings("unchecked") T... values) { iterables.assertContainsOnly(info, actual, values); return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs contains <b>only</b> the given JobRecordValue elements in Collection and nothing else in whatever order. * @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 hasOnlyJobs(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().assertContainsOnly(info, actual.getJobs(), jobs.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual RaftRecordValue's members contains <b>only</b> the given io.zeebe.exporter.record.value.raft.RaftMember elements in Collection and nothing else in whatever order. * @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 hasOnlyMembers(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().assertContainsOnly(info, actual.getMembers(), members.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's deployedWorkflows contains <b>only</b> the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements in Collection and nothing else in whatever order. * @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 hasOnlyDeployedWorkflows(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().assertContainsOnly(info, actual.getDeployedWorkflows(), deployedWorkflows.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources contains <b>only</b> the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements in Collection and nothing else in whatever order. * @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 hasOnlyResources(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().assertContainsOnly(info, actual.getResources(), resources.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys contains <b>only</b> the given Long elements in Collection 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(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().assertContainsOnly(info, actual.getJobKeys(), jobKeys.toArray()); // 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; }
/** * Verifies that the actual RaftRecordValue's members contains <b>only</b> the given io.zeebe.exporter.record.value.raft.RaftMember elements and nothing else in whatever order. * @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 hasOnlyMembers(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().assertContainsOnly(info, actual.getMembers(), members); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs contains <b>only</b> the given JobRecordValue elements and nothing else in whatever order. * @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 hasOnlyJobs(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().assertContainsOnly(info, actual.getJobs(), jobs); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's deployedWorkflows contains <b>only</b> the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements and nothing else in whatever order. * @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 hasOnlyDeployedWorkflows(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().assertContainsOnly(info, actual.getDeployedWorkflows(), deployedWorkflows); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources contains <b>only</b> the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements and nothing else in whatever order. * @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 hasOnlyResources(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().assertContainsOnly(info, actual.getResources(), resources); // return the current assertion for method chaining return myself; }