Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void reopenStartDefaultTransactionIfTimeoutNotSpecified()
        public virtual void ReopenStartDefaultTransactionIfTimeoutNotSpecified()
        {
            TransitionalTxManagementKernelTransaction managementKernelTransaction = new TransitionalTxManagementKernelTransaction(_databaseFacade, _type, _loginContext, -1, _contextBridge);

            managementKernelTransaction.ReopenAfterPeriodicCommit();

            verify(_databaseFacade, times(2)).beginTransaction(_type, _loginContext);
        }
Exemple #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void reopenStartTransactionWithCustomTimeoutIfSpecified()
        public virtual void ReopenStartTransactionWithCustomTimeoutIfSpecified()
        {
            TransitionalTxManagementKernelTransaction managementKernelTransaction = new TransitionalTxManagementKernelTransaction(_databaseFacade, _type, _loginContext, 10, _contextBridge);

            managementKernelTransaction.ReopenAfterPeriodicCommit();

            verify(_databaseFacade, times(2)).beginTransaction(_type, _loginContext, 10, TimeUnit.MILLISECONDS);
        }