/** * Verifies that the actual JobBatchRecordValue has no jobs. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobs is not empty. */ public S hasNoJobs() { // check that actual JobBatchRecordValue we want to make assertions on is not null. isNotNull(); // we override the default error message with a more explicit one String assertjErrorMessage = "\nExpecting :\n <%s>\nnot to have jobs but had :\n <%s>"; // check if (actual.getJobs().iterator().hasNext()) { failWithMessage(assertjErrorMessage, actual, actual.getJobs()); } // 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 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 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 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 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 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; }