//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotHaveTxLogsIfDirectoryIsEmpty() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldNotHaveTxLogsIfDirectoryIsEmpty() { File txDir = _config.get(GraphDatabaseSettings.logical_logs_location); _fsa.mkdir(txDir); assertFalse(_commitStateHelper.hasTxLogs(_databaseLayout)); }
//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() { _homeDir = _testDir.directory("home").toPath(); _confDir = _testDir.directory("conf").toPath(); _fs.mkdir(_homeDir.toFile()); when(_outsideWorld.fileSystem()).thenReturn(_fs); }
private SegmentedRaftLog CreateRaftLog(long rotateAtSize, string pruneStrategy) { if (_fileSystem == null) { _fileSystem = new EphemeralFileSystemAbstraction(); } File directory = new File(RAFT_LOG_DIRECTORY_NAME); _fileSystem.mkdir(directory); LogProvider logProvider = Instance; CoreLogPruningStrategy pruningStrategy = (new CoreLogPruningStrategyFactory(pruneStrategy, logProvider)).NewInstance(); SegmentedRaftLog newRaftLog = new SegmentedRaftLog(_fileSystem, directory, rotateAtSize, new DummyRaftableContentSerializer(), logProvider, 8, Clocks.systemClock(), new OnDemandJobScheduler(), pruningStrategy); _life.add(newRaftLog); _life.init(); _life.start(); return(newRaftLog); }