Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void retrieveCustomTransactionTimeout()
        public virtual void RetrieveCustomTransactionTimeout()
        {
            when(_request.getHeader(MAX_EXECUTION_TIME_HEADER)).thenReturn("100");
            Log  log = LogProvider.getLog(typeof(HttpServletRequest));
            long transactionTimeout = getTransactionTimeout(_request, log);

            assertEquals("Transaction timeout should be retrieved.", 100, transactionTimeout);
            LogProvider.assertNoLoggingOccurred();
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void startDefaultTransaction()
        public virtual void StartDefaultTransaction()
        {
            CypherExecutor cypherExecutor = new CypherExecutor(_database, _logProvider);

            cypherExecutor.Start();

            cypherExecutor.CreateTransactionContext(QUERY, VirtualValues.emptyMap(), _request);

            verify(_databaseQueryService).beginTransaction(KernelTransaction.Type.@implicit, AUTH_DISABLED);
            _logProvider.assertNoLoggingOccurred();
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotLogQueries()
        public virtual void ShouldNotLogQueries()
        {
            // when
            _database.execute("CREATE (n:Reference) CREATE (foo {test:'me'}) RETURN n");
            _database.execute("MATCH (n) RETURN n");

            // then
            inLog(typeof([email protected]));
            _logProvider.assertNoLoggingOccurred();
        }
Exemplo n.º 4
0
 private void AssertNoWarning()
 {
     _logProvider.assertNoLoggingOccurred();
 }