/** * Verifies that the actual JobBatchRecordValue has no jobKeys. * @return this assertion object. * @throws AssertionError if the actual JobBatchRecordValue's jobKeys is not empty. */ public S hasNoJobKeys() { // 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 jobKeys but had :\n <%s>"; // check if (actual.getJobKeys().iterator().hasNext()) { failWithMessage(assertjErrorMessage, actual, actual.getJobKeys()); } // 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 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 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 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'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 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; }