Esempio n. 1
0
        public virtual void testTimestampConversion()
        {
            // when
            HistoricJobLog historicJobLog = historyService.createHistoricJobLogQuery().processDefinitionKey(PROCESS_DEFINITION_KEY).singleResult();

            // assume
            assertNotNull(historicJobLog);

            // then
            assertThat(historicJobLog.Timestamp, @is(TIMESTAMP));
        }
Esempio n. 2
0
        public virtual void testDueDateConversion()
        {
            // when
            HistoricJobLog historicJobLog = historyService.createHistoricJobLogQuery().processDefinitionKey(PROCESS_DEFINITION_KEY).singleResult();

            // assume
            assertThat(historicJobLog, @is(notNullValue()));

            // then
            assertThat(historicJobLog.JobDueDate, @is(TIMESTAMP));
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpRuntimeData()
        public virtual void setUpRuntimeData()
        {
            mockQuery = mock(typeof(HistoricJobLogQuery));

            HistoricJobLog mockedHistoricJobLog = MockProvider.createMockHistoricJobLog();

            when(mockQuery.singleResult()).thenReturn(mockedHistoricJobLog);
            when(mockQuery.logId(MockProvider.EXAMPLE_HISTORIC_JOB_LOG_ID)).thenReturn(mockQuery);

            mockHistoryService = mock(typeof(HistoryService));
            when(mockHistoryService.createHistoricJobLogQuery()).thenReturn(mockQuery);

            namedProcessEngine = getProcessEngine(MockProvider.EXAMPLE_PROCESS_ENGINE_NAME);
            when(namedProcessEngine.HistoryService).thenReturn(mockHistoryService);
        }