//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void closeStatementOnClose() public virtual void CloseStatementOnClose() { KernelTransaction kernelTransaction = mock(typeof(KernelTransaction)); Statement statement = mock(typeof(Statement)); when(kernelTransaction.AcquireStatement()).thenReturn(statement); //noinspection EmptyTryBlock using (IndexProcedures ignored = new IndexProcedures(kernelTransaction, null)) { } verify(statement).close(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() public virtual void Setup() { _transaction = mock(typeof(KernelTransaction)); _tokenRead = mock(typeof(TokenRead)); _schemaRead = mock(typeof(SchemaRead)); _procedure = new IndexProcedures(_transaction, null); _descriptor = SchemaDescriptorFactory.forLabel(123, 456); _anyDescriptor = SchemaDescriptorFactory.forLabel(0, 0); _anyIndex = forSchema(_anyDescriptor); when(_transaction.tokenRead()).thenReturn(_tokenRead); when(_transaction.schemaRead()).thenReturn(_schemaRead); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setup() public virtual void Setup() { KernelTransaction transaction = mock(typeof(KernelTransaction)); _tokenRead = mock(typeof(TokenRead)); _schemaRead = mock(typeof(SchemaRead)); _procedure = new IndexProcedures(transaction, null); when(transaction.TokenRead()).thenReturn(_tokenRead); when(transaction.SchemaRead()).thenReturn(_schemaRead); _indexingService = mock(typeof(IndexingService)); _procedure = new IndexProcedures(transaction, _indexingService); }
private void InitializeInstanceFields() { _procedure = new IndexProcedures(new StubKernelTransaction(), _indexingService); }