Tabnine Logo
DeploymentQuery.asc
Code IndexAdd Tabnine to your IDE (free)

How to use
asc
method
in
org.camunda.bpm.engine.repository.DeploymentQuery

Best Java code snippets using org.camunda.bpm.engine.repository.DeploymentQuery.asc (Showing top 9 results out of 315)

origin: camunda/camunda-bpm-platform

public void testQuerySortingAsc() {
 // exclude deployments without tenant id because of database-specific ordering
 List<Deployment> deployments = repositoryService.createDeploymentQuery()
   .tenantIdIn(TENANT_ONE, TENANT_TWO)
   .orderByTenantId()
   .asc()
   .list();
 assertThat(deployments.size(), is(2));
 assertThat(deployments.get(0).getTenantId(), is(TENANT_ONE));
 assertThat(deployments.get(1).getTenantId(), is(TENANT_TWO));
}
origin: camunda/camunda-bpm-platform

executeAndVerifySuccessfulSorting("id", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentId();
inOrder.verify(mockedQuery).asc();
executeAndVerifySuccessfulSorting("deploymentTime", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentTime();
inOrder.verify(mockedQuery).asc();
executeAndVerifySuccessfulSorting("name", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByDeploymentName();
inOrder.verify(mockedQuery).asc();
executeAndVerifySuccessfulSorting("tenantId", "asc", Status.OK);
inOrder.verify(mockedQuery).orderByTenantId();
inOrder.verify(mockedQuery).asc();
origin: camunda/camunda-bpm-platform

public void testQuerySorting() {
 assertEquals(2, repositoryService.createDeploymentQuery()
   .orderByDeploymentName()
   .asc()
   .list()
   .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymentId()
  .asc()
  .list()
  .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymenTime()
  .asc()
  .list()
  .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymentTime()
  .asc()
  .list()
  .size());
}
origin: camunda/camunda-bpm-platform

public void testDeployWithTenantIds() {
 registerProcessEngine();
 TestApplicationWithTenantId processApplication = new TestApplicationWithTenantId();
 processApplication.deploy();
 List<Deployment> deployments = repositoryService
   .createDeploymentQuery()
   .orderByTenantId()
   .asc()
   .list();
 assertEquals(2, deployments.size());
 assertEquals("tenant1", deployments.get(0).getTenantId());
 assertEquals("tenant2", deployments.get(1).getTenantId());
 processApplication.undeploy();
}
origin: camunda/camunda-bpm-platform

public void testVerifyDeploymentProperties() {
 List<Deployment> deployments = repositoryService.createDeploymentQuery()
  .orderByDeploymentName()
  .asc()
  .list();
 Deployment deploymentOne = deployments.get(0);
 assertEquals("org/camunda/bpm/engine/test/repository/one.bpmn20.xml", deploymentOne.getName());
 assertEquals(deploymentOneId, deploymentOne.getId());
 assertEquals(ProcessApplicationDeployment.PROCESS_APPLICATION_DEPLOYMENT_SOURCE, deploymentOne.getSource());
 assertNull(deploymentOne.getTenantId());
 Deployment deploymentTwo = deployments.get(1);
 assertEquals("org/camunda/bpm/engine/test/repository/two_.bpmn20.xml", deploymentTwo.getName());
 assertEquals(deploymentTwoId, deploymentTwo.getId());
 assertNull(deploymentTwo.getSource());
 assertNull(deploymentTwo.getTenantId());
}
origin: org.camunda.bpm/camunda-engine

public void testQuerySortingAsc() {
 // exclude deployments without tenant id because of database-specific ordering
 List<Deployment> deployments = repositoryService.createDeploymentQuery()
   .tenantIdIn(TENANT_ONE, TENANT_TWO)
   .orderByTenantId()
   .asc()
   .list();
 assertThat(deployments.size(), is(2));
 assertThat(deployments.get(0).getTenantId(), is(TENANT_ONE));
 assertThat(deployments.get(1).getTenantId(), is(TENANT_TWO));
}
origin: org.camunda.bpm/camunda-engine

public void testQuerySorting() {
 assertEquals(2, repositoryService.createDeploymentQuery()
   .orderByDeploymentName()
   .asc()
   .list()
   .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymentId()
  .asc()
  .list()
  .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymenTime()
  .asc()
  .list()
  .size());
 assertEquals(2, repositoryService.createDeploymentQuery()
  .orderByDeploymentTime()
  .asc()
  .list()
  .size());
}
origin: org.camunda.bpm/camunda-engine

public void testDeployWithTenantIds() {
 registerProcessEngine();
 TestApplicationWithTenantId processApplication = new TestApplicationWithTenantId();
 processApplication.deploy();
 List<Deployment> deployments = repositoryService
   .createDeploymentQuery()
   .orderByTenantId()
   .asc()
   .list();
 assertEquals(2, deployments.size());
 assertEquals("tenant1", deployments.get(0).getTenantId());
 assertEquals("tenant2", deployments.get(1).getTenantId());
 processApplication.undeploy();
}
origin: org.camunda.bpm/camunda-engine

public void testVerifyDeploymentProperties() {
 List<Deployment> deployments = repositoryService.createDeploymentQuery()
  .orderByDeploymentName()
  .asc()
  .list();
 Deployment deploymentOne = deployments.get(0);
 assertEquals("org/camunda/bpm/engine/test/repository/one.bpmn20.xml", deploymentOne.getName());
 assertEquals(deploymentOneId, deploymentOne.getId());
 assertEquals(ProcessApplicationDeployment.PROCESS_APPLICATION_DEPLOYMENT_SOURCE, deploymentOne.getSource());
 assertNull(deploymentOne.getTenantId());
 Deployment deploymentTwo = deployments.get(1);
 assertEquals("org/camunda/bpm/engine/test/repository/two_.bpmn20.xml", deploymentTwo.getName());
 assertEquals(deploymentTwoId, deploymentTwo.getId());
 assertNull(deploymentTwo.getSource());
 assertNull(deploymentTwo.getTenantId());
}
org.camunda.bpm.engine.repositoryDeploymentQueryasc

Popular methods of DeploymentQuery

  • list
  • singleResult
  • count
  • deploymentId
    Only select deployments with the given deployment id.
  • deploymentName
    Only select deployments with the given name.
  • deploymentAfter
    Only select deployments deployed after the given date
  • deploymentBefore
    Only select deployments deployed before the given date
  • deploymentNameLike
    Only select deployments with a name like the given string.
  • deploymentSource
    If the given source is null, then deployments are returned where source is equal to null. Otherwise
  • includeDeploymentsWithoutTenantId
    Select deployments which have no tenant id. Can be used in combination with #tenantIdIn(String...).
  • orderByDeploymentId
    Order by deployment id (needs to be followed by #asc() or #desc()).
  • orderByDeploymentName
    Order by deployment name (needs to be followed by #asc() or #desc()).
  • orderByDeploymentId,
  • orderByDeploymentName,
  • orderByDeploymentTime,
  • orderByTenantId,
  • tenantIdIn,
  • withoutTenantId,
  • listPage,
  • desc,
  • orderByDeploymenTime

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now