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

            query.decisionDefinitionResourceNameLike("%ree%");

            verifyQueryResults(query, 1);

            query.decisionDefinitionResourceNameLike("%ee\\_%");

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

            query.decisionDefinitionResourceNameLike("%invalid%");

            verifyQueryResults(query, 0);

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