コード例 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testQueryByInvalidCauseIncidentId()
        public virtual void testQueryByInvalidCauseIncidentId()
        {
            HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

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

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