Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void queryByName()
        public virtual void queryByName()
        {
            DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();

            query.decisionDefinitionName("Two");

            verifyQueryResults(query, 1);

            query.decisionDefinitionName("One");

            verifyQueryResults(query, 2);
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void queryByInvalidName()
        public virtual void queryByInvalidName()
        {
            DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();

            query.decisionDefinitionName("invalid");

            verifyQueryResults(query, 0);

            try
            {
                query.decisionDefinitionName(null);
                fail();
            }
            catch (NotValidException)
            {
                // Expected exception
            }
        }
Esempio n. 3
0
        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
            }
        }