Class TestDatabaseSystemTimeReader

java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.database.TestDatabaseSystemTimeReader

public class TestDatabaseSystemTimeReader extends BaseJiraFuncTest
Functional tests for reading database system time.
Since:
6.3
  • Constructor Details

    • TestDatabaseSystemTimeReader

      public TestDatabaseSystemTimeReader()
  • Method Details

    • testThatDatabaseSystemTimeIncreasesOverTime

      public void testThatDatabaseSystemTimeIncreasesOverTime() throws Exception
      Can't make too many guarantees as to what different databases will return for the system time - it is not necessarily number of millis since epoch. But it should increase over time unless there are problems. The test makes two calls to read the database system time with one second delay between them and ensures that the system time is increasing.
      Throws:
      Exception - if an error occurs.