//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void queryByDeploymentId() public virtual void queryByDeploymentId() { DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery(); query.deploymentId(firstDeploymentId); verifyQueryResults(query, 2); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void queryByInvalidDeploymentId() public virtual void queryByInvalidDeploymentId() { DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery(); query.deploymentId("invalid"); verifyQueryResults(query, 0); try { query.deploymentId(null); fail(); } catch (NotValidException) { // Expected exception } }
public virtual void testInvalidUsageOfLatest() { DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery(); try { query.decisionDefinitionId("test").latestVersion().list(); fail(); } catch (NotValidException) { // Expected exception } try { query.decisionDefinitionName("test").latestVersion().list(); fail(); } catch (NotValidException) { // Expected exception } try { query.decisionDefinitionNameLike("test").latestVersion().list(); fail(); } catch (NotValidException) { // Expected exception } try { query.decisionDefinitionVersion(1).latestVersion().list(); fail(); } catch (NotValidException) { // Expected exception } try { query.deploymentId("test").latestVersion().list(); fail(); } catch (NotValidException) { // Expected exception } }