Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testQueryByInvalidRootCauseIncidentId()
        public virtual void testQueryByInvalidRootCauseIncidentId()
        {
            HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

            assertEquals(0, query.rootCauseIncidentId("invalid").list().size());
            assertEquals(0, query.rootCauseIncidentId("invalid").count());

            try
            {
                query.rootCauseIncidentId(null);
                fail("It was possible to set a null value as rootCauseIncidentId.");
            }
            catch (ProcessEngineException)
            {
            }
        }