Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @Before public void init()
        public override void init()
        {
            base.init();

            SchemaLogEntry latestEntry = processEngine.ManagementService.createSchemaLogQuery().orderByTimestamp().desc().listPage(0, 1).get(0);

            currentSchemaVersion = latestEntry.Version;

            dataBaseType = processEngine.ProcessEngineConfiguration.DatabaseType;
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testFilterByVersion()
        public virtual void testFilterByVersion()
        {
            // given (at least) two schema log entries
            populateTable();

            // when
            SchemaLogEntry schemaLogEntry = managementService.createSchemaLogQuery().version("dummyVersion").singleResult();

            // then
            assertThat(schemaLogEntry.Id, @is(dummySchemaLogEntry.Id));
            assertThat(schemaLogEntry.Timestamp, notNullValue());
            assertThat(schemaLogEntry.Version, @is(dummySchemaLogEntry.Version));

            cleanupTable();
        }
Example #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testQuerySchemaLogEntryList()
        public virtual void testQuerySchemaLogEntryList()
        {
            // given

            // when
            IList <SchemaLogEntry> schemaLogEntries = managementService.createSchemaLogQuery().list();

            // then expect one entry
            assertThat(managementService.createSchemaLogQuery().count(), @is(greaterThan(0L)));
            SchemaLogEntry schemaLogEntry = schemaLogEntries[0];

            assertThat(schemaLogEntry.Id, @is("0"));
            assertThat(schemaLogEntry.Timestamp, notNullValue());
            assertThat(schemaLogEntry.Version, notNullValue());
            managementService.Properties;
            cleanupTable();
        }