@Override public SELF doesNotContain(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertDoesNotContain(info, actual, values); return myself; }
@Override public SELF doesNotContain(@SuppressWarnings("unchecked") ELEMENT... values) { iterables.assertDoesNotContain(info, actual, values); return myself; }
/** * Asserts that the given {@code Iterable} does not contain the given values. * * @param <T> the type of actual elements * @param info contains information about the assertion. * @param actual the given {@code Iterable}. * @param iterable the values that are expected not to be in the given {@code Iterable}. * @throws NullPointerException if the array of values is {@code null}. * @throws IllegalArgumentException if the array of values is empty. * @throws AssertionError if the given {@code Iterable} is {@code null}. * @throws AssertionError if the given {@code Iterable} contains any of given values. */ public <T> void assertDoesNotContainAnyElementsOf(AssertionInfo info, Iterable<? extends T> actual, Iterable<? extends T> iterable) { checkIsNotNullAndNotEmpty(iterable); List<T> values = newArrayList(iterable); assertDoesNotContain(info, actual, values.toArray()); }
/** * Asserts that the given {@code Iterable} does not contain the given values. * * @param <T> the type of actual elements * @param info contains information about the assertion. * @param actual the given {@code Iterable}. * @param iterable the values that are expected not to be in the given {@code Iterable}. * @throws NullPointerException if the array of values is {@code null}. * @throws IllegalArgumentException if the array of values is empty. * @throws AssertionError if the given {@code Iterable} is {@code null}. * @throws AssertionError if the given {@code Iterable} contains any of given values. */ public <T> void assertDoesNotContainAnyElementsOf(AssertionInfo info, Iterable<? extends T> actual, Iterable<? extends T> iterable) { checkIsNotNullAndNotEmpty(iterable); List<T> values = newArrayList(iterable); assertDoesNotContain(info, actual, values.toArray()); }
@Override public S doesNotContain(@SuppressWarnings("unchecked") T... values) { iterables.assertDoesNotContain(info, actual, values); return myself; }
/** * Asserts that the given {@code Iterable} does not contain the given values. * * @param info contains information about the assertion. * @param actual the given {@code Iterable}. * @param iterable the values that are expected not to be in the given {@code Iterable}. * @throws NullPointerException if the array of values is {@code null}. * @throws IllegalArgumentException if the array of values is empty. * @throws AssertionError if the given {@code Iterable} is {@code null}. * @throws AssertionError if the given {@code Iterable} contains any of given values. */ public <T> void assertDoesNotContainAnyElementsOf(AssertionInfo info, Iterable<? extends T> actual, Iterable<? extends T> iterable) { checkIsNotNullAndNotEmpty(iterable); List<T> values = newArrayList(iterable); assertDoesNotContain(info, actual, values.toArray()); }
/** * Verifies that the actual RaftRecordValue's members does not contain the given io.zeebe.exporter.record.value.raft.RaftMember elements in Collection. * * @param members the given elements that should not be in actual RaftRecordValue's members. * @return this assertion object. * @throws AssertionError if the actual RaftRecordValue's members contains any given io.zeebe.exporter.record.value.raft.RaftMember elements. */ public S doesNotHaveMembers(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getMembers(), members.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources does not contain the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements in Collection. * * @param resources the given elements that should not be in actual DeploymentRecordValue's resources. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's resources contains any given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. */ public S doesNotHaveResources(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getResources(), resources.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys does not contain the given Long elements in Collection. * * @param jobKeys the given elements that should not be in actual JobBatchRecordValue's jobKeys. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobKeys contains any given Long elements. */ public S doesNotHaveJobKeys(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getJobKeys(), jobKeys.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs does not contain the given JobRecordValue elements in Collection. * * @param jobs the given elements that should not be in actual JobBatchRecordValue's jobs. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobs contains any given JobRecordValue elements. */ public S doesNotHaveJobs(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getJobs(), jobs.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's deployedWorkflows does not contain the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements in Collection. * * @param deployedWorkflows the given elements that should not be in actual DeploymentRecordValue's deployedWorkflows. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's deployedWorkflows contains any given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. */ public S doesNotHaveDeployedWorkflows(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getDeployedWorkflows(), deployedWorkflows.toArray()); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's resources does not contain the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. * * @param resources the given elements that should not be in actual DeploymentRecordValue's resources. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's resources contains any given io.zeebe.exporter.record.value.deployment.DeploymentResource elements. */ public S doesNotHaveResources(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getResources(), resources); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobs does not contain the given JobRecordValue elements. * * @param jobs the given elements that should not be in actual JobBatchRecordValue's jobs. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobs contains any given JobRecordValue elements. */ public S doesNotHaveJobs(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getJobs(), jobs); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual RaftRecordValue's members does not contain the given io.zeebe.exporter.record.value.raft.RaftMember elements. * * @param members the given elements that should not be in actual RaftRecordValue's members. * @return this assertion object. * @throws AssertionError if the actual RaftRecordValue's members contains any given io.zeebe.exporter.record.value.raft.RaftMember elements. */ public S doesNotHaveMembers(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getMembers(), members); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual JobBatchRecordValue's jobKeys does not contain the given Long elements. * * @param jobKeys the given elements that should not be in actual JobBatchRecordValue's jobKeys. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobKeys contains any given Long elements. */ public S doesNotHaveJobKeys(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getJobKeys(), jobKeys); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual DeploymentRecordValue's deployedWorkflows does not contain the given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. * * @param deployedWorkflows the given elements that should not be in actual DeploymentRecordValue's deployedWorkflows. * @return this assertion object. * @throws AssertionError if the actual DeploymentRecordValue's deployedWorkflows contains any given io.zeebe.exporter.record.value.deployment.DeployedWorkflow elements. */ public S doesNotHaveDeployedWorkflows(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 (use overridingErrorMessage before contains to set your own message). Iterables.instance().assertDoesNotContain(info, actual.getDeployedWorkflows(), deployedWorkflows); // return the current assertion for method chaining return myself; }