Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void init()
        public virtual void init()
        {
            mockedQuery = Mockito.mock(typeof(SchemaLogQuery));

            mockedSchemaLogEntries = createMockedSchemaLogEntries();
            when(mockedQuery.list()).thenReturn(mockedSchemaLogEntries);

            when(processEngine.ManagementService.createSchemaLogQuery()).thenReturn(mockedQuery);
        }
Example #2
0
        public virtual IList <SchemaLogEntryDto> querySchemaLog(SchemaLogQueryDto dto, int?firstResult, int?maxResults)
        {
            SchemaLogQuery         query = dto.toQuery(processEngine);
            IList <SchemaLogEntry> schemaLogEntries;

            if (firstResult != null || maxResults != null)
            {
                schemaLogEntries = executePaginatedQuery(query, firstResult, maxResults);
            }
            else
            {
                schemaLogEntries = query.list();
            }
            return(SchemaLogEntryDto.fromSchemaLogEntries(schemaLogEntries));
        }