//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void correctLastAppliedToPreviousLogTransactionInHeaderOnLogFileRotation() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CorrectLastAppliedToPreviousLogTransactionInHeaderOnLogFileRotation() { LogFiles logFiles = GetLogFiles(_logVersionRepository, _transactionIdStore); Life.add(logFiles); DatabaseHealth databaseHealth = DatabaseHealth; LogRotationImpl logRotation = new LogRotationImpl(_monitors.newMonitor(typeof(Org.Neo4j.Kernel.impl.transaction.log.rotation.LogRotation_Monitor)), logFiles, databaseHealth); TransactionMetadataCache transactionMetadataCache = new TransactionMetadataCache(); SynchronizedArrayIdOrderingQueue idOrderingQueue = new SynchronizedArrayIdOrderingQueue(); BatchingTransactionAppender transactionAppender = new BatchingTransactionAppender(logFiles, logRotation, transactionMetadataCache, _transactionIdStore, idOrderingQueue, databaseHealth); Life.add(transactionAppender); LogAppendEvent logAppendEvent = new RotationLogAppendEvent(logRotation); TransactionToApply transactionToApply = PrepareTransaction(); transactionAppender.Append(transactionToApply, logAppendEvent); assertEquals(1, logFiles.HighestLogVersion); File highestLogFile = logFiles.HighestLogFile; LogHeader logHeader = LogHeaderReader.readLogHeader(FileSystem, highestLogFile); assertEquals(2, logHeader.LastCommittedTxId); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void logFile(java.io.File file, long logVersion) throws java.io.IOException public void logFile(File file, long logVersion) { LogHeader logHeader = LogHeaderReader.readLogHeader(_outerInstance.fileSystem, file); @out.println("=== " + file.AbsolutePath + "[" + logHeader + "] ==="); }