Codota Logo
DeploymentRecordValue.getResources
Code IndexAdd Codota to your IDE (free)

How to use
getResources
method
in
io.zeebe.exporter.record.value.DeploymentRecordValue

Best Java code snippets using io.zeebe.exporter.record.value.DeploymentRecordValue.getResources (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: zeebe-io/zeebe

public DeploymentRecordStream withResource(final DeploymentResource resource) {
 return valueFilter(v -> v.getResources().contains(resource));
}
origin: zeebe-io/zeebe

public DeploymentRecordStream withResources(final List<DeploymentResource> resources) {
 return valueFilter(v -> resources.equals(v.getResources()));
}
origin: zeebe-io/zeebe

/**
 * Verifies that the actual DeploymentRecordValue has no resources.
 * @return this assertion object.
 * @throws AssertionError if the actual DeploymentRecordValue's resources is not empty.
 */
public S hasNoResources() {
 // check that actual DeploymentRecordValue 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 resources but had :\n  <%s>";
 // check
 if (actual.getResources().iterator().hasNext()) {
  failWithMessage(assertjErrorMessage, actual, actual.getResources());
 }
 // return the current assertion for method chaining
 return myself;
}
origin: io.zeebe/zb-test-util

public DeploymentRecordStream withResource(final DeploymentResource resource) {
 return valueFilter(v -> v.getResources().contains(resource));
}
origin: io.zeebe/zb-test-util

public DeploymentRecordStream withResources(final List<DeploymentResource> resources) {
 return valueFilter(v -> resources.equals(v.getResources()));
}
origin: zeebe-io/zeebe

/**
 * Verifies that the actual DeploymentRecordValue's resources contains the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements in Collection.
 * @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 hasResources(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().assertContains(info, actual.getResources(), resources.toArray());
 // return the current assertion for method chaining
 return myself;
}
origin: zeebe-io/zeebe

/**
 * 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;
}
origin: zeebe-io/zeebe

/**
 * 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;
}
origin: zeebe-io/zeebe

/**
 * 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;
}
origin: zeebe-io/zeebe

/**
 * Verifies that the actual DeploymentRecordValue's resources contains the given io.zeebe.exporter.record.value.deployment.DeploymentResource elements.
 * @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 hasResources(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().assertContains(info, actual.getResources(), resources);
 // return the current assertion for method chaining
 return myself;
}
origin: zeebe-io/zeebe

/**
 * 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;
}
origin: zeebe-io/zeebe

private void assertDeploymentRecord(final Record<DeploymentRecordValue> deploymentCreatedEvent) {
 final DeploymentResource resource = deploymentCreatedEvent.getValue().getResources().get(0);
 Assertions.assertThat(resource)
   .hasResource(bpmnXml(WORKFLOW))
   .hasResourceType(ResourceType.BPMN_XML);
 final List<DeployedWorkflow> deployedWorkflows =
   deploymentCreatedEvent.getValue().getDeployedWorkflows();
 assertThat(deployedWorkflows).hasSize(1);
 Assertions.assertThat(deployedWorkflows.get(0))
   .hasBpmnProcessId("process")
   .hasVersion(1)
   .hasWorkflowKey(1)
   .hasResourceName("process.bpmn");
}
origin: io.zeebe/zeebe-broker-core

private void assertDeploymentRecord(final Record<DeploymentRecordValue> deploymentCreatedEvent) {
 final DeploymentResource resource = deploymentCreatedEvent.getValue().getResources().get(0);
 Assertions.assertThat(resource)
   .hasResource(bpmnXml(WORKFLOW))
   .hasResourceType(ResourceType.BPMN_XML);
 final List<DeployedWorkflow> deployedWorkflows =
   deploymentCreatedEvent.getValue().getDeployedWorkflows();
 assertThat(deployedWorkflows).hasSize(1);
 Assertions.assertThat(deployedWorkflows.get(0))
   .hasBpmnProcessId("process")
   .hasVersion(1)
   .hasWorkflowKey(1)
   .hasResourceName("process.bpmn");
}
origin: zeebe-io/zeebe

(deploymentCreatedEvent) -> {
 final DeploymentRecordValue deployment = deploymentCreatedEvent.getValue();
 final DeploymentResource resource = deployment.getResources().get(0);
 Assertions.assertThat(resource).hasResourceType(ResourceType.YAML_WORKFLOW);
origin: io.zeebe/zeebe-broker-core

(deploymentCreatedEvent) -> {
 final DeploymentRecordValue deployment = deploymentCreatedEvent.getValue();
 final DeploymentResource resource = deployment.getResources().get(0);
 Assertions.assertThat(resource).hasResourceType(ResourceType.YAML_WORKFLOW);
io.zeebe.exporter.record.valueDeploymentRecordValuegetResources

Popular methods of DeploymentRecordValue

  • getDeployedWorkflows

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now