/** * Verifies that the actual DeploymentResource's resource does not contain the given byte elements. * * @param resource the given elements that should not be in actual DeploymentResource's resource. * @return this assertion object. * @throws AssertionError if the actual DeploymentResource's resource contains any given byte elements. */ public S doesNotHaveResource(byte... resource) { // check that actual DeploymentResource we want to make assertions on is not null. isNotNull(); // check that given byte varargs is not null. if (resource == null) failWithMessage("Expecting resource parameter not to be null."); // check with standard error message (use overridingErrorMessage before contains to set your own message). Assertions.assertThat(actual.getResource()).doesNotContain(resource); // return the current assertion for method chaining return myself; }
/** * Verifies that the actual BonitaConfiguration's resourceContent does not contain the given byte elements. * * @param resourceContent the given elements that should not be in actual BonitaConfiguration's resourceContent. * @return this assertion object. * @throws AssertionError if the actual BonitaConfiguration's resourceContent contains any given byte elements. */ public BonitaConfigurationAssert doesNotHaveResourceContent(byte... resourceContent) { // check that actual BonitaConfiguration we want to make assertions on is not null. isNotNull(); // check that given byte varargs is not null. if (resourceContent == null) failWithMessage("Expecting resourceContent parameter not to be null."); // check with standard error message (use overridingErrorMessage before contains to set your own message). Assertions.assertThat(actual.getResourceContent()).doesNotContain(resourceContent); // return the current assertion for method chaining return this; }