Class AbstractProcessEngineTestCase

    • Constructor Detail

      • AbstractProcessEngineTestCase

        public AbstractProcessEngineTestCase()
    • Method Detail

      • initializeProcessEngine

        protected abstract void initializeProcessEngine()
      • closeDownProcessEngine

        protected void closeDownProcessEngine()
      • runBare

        public void runBare()
                     throws Throwable
        Overrides:
        runBare in class junit.framework.TestCase
        Throws:
        Throwable
      • deleteHistoryCleanupJobs

        protected void deleteHistoryCleanupJobs()
      • deleteDeployments

        protected void deleteDeployments()
      • initializeServices

        protected void initializeServices()
      • clearServiceReferences

        protected void clearServiceReferences()
      • assertProcessEnded

        public void assertProcessEnded​(String processInstanceId)
      • assertProcessNotEnded

        public void assertProcessNotEnded​(String processInstanceId)
      • assertCaseEnded

        public void assertCaseEnded​(String caseInstanceId)
      • waitForJobExecutorToProcessAllJobs

        @Deprecated
        public void waitForJobExecutorToProcessAllJobs​(long maxMillisToWait,
                                                       long intervalMillis)
        Deprecated.
      • waitForJobExecutorToProcessAllJobs

        public void waitForJobExecutorToProcessAllJobs​(long maxMillisToWait)
      • waitForJobExecutorOnCondition

        @Deprecated
        public void waitForJobExecutorOnCondition​(long maxMillisToWait,
                                                  long intervalMillis,
                                                  Callable<Boolean> condition)
        Deprecated.
      • waitForJobExecutorOnCondition

        public void waitForJobExecutorOnCondition​(long maxMillisToWait,
                                                  Callable<Boolean> condition)
      • executeAvailableJobs

        public void executeAvailableJobs()
        Execute all available jobs recursively till no more jobs found.
      • executeAvailableJobs

        public void executeAvailableJobs​(int expectedExecutions)
        Execute all available jobs recursively till no more jobs found or the number of executions is higher than expected.
        Parameters:
        expectedExecutions - number of expected job executions
        Throws:
        junit.framework.AssertionFailedError - when execute less or more jobs than expected
        See Also:
        executeAvailableJobs()
      • executeAvailableJobs

        public void executeAvailableJobs​(boolean recursive)
      • areJobsAvailable

        public boolean areJobsAvailable()
      • deployment

        protected String deployment​(String... resources)
      • deploymentForTenant

        protected String deploymentForTenant​(String tenantId,
                                             String... resources)