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 queryByCategoryLike()
        public virtual void queryByCategoryLike()
        {
            DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();

            query.decisionDefinitionCategoryLike("%Example%");

            verifyQueryResults(query, 3);

            query.decisionDefinitionCategoryLike("%amples2");

            verifyQueryResults(query, 1);

            query.decisionDefinitionCategoryLike("%z\\_");

            verifyQueryResults(query, 1);
        }
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 queryByInvalidCategoryLike()
        public virtual void queryByInvalidCategoryLike()
        {
            DecisionDefinitionQuery query = repositoryService.createDecisionDefinitionQuery();

            query.decisionDefinitionCategoryLike("invalid");

            verifyQueryResults(query, 0);

            try
            {
                query.decisionDefinitionCategoryLike(null);
                fail();
            }
            catch (NotValidException)
            {
                // Expected exception
            }
        }