Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown()
        public virtual void TearDown()
        {
            if (_neoStores != null)
            {
                _neoStores.close();
            }
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void after()
        public virtual void After()
        {
            if (_neoStores != null)
            {
                _neoStores.close();
            }
        }
Ejemplo n.º 3
0
 public virtual void Close()
 {
     lock (this)
     {
         if (_closeable)
         {
             _closeable = false;
             _neoStores.close();
         }
     }
 }
Ejemplo n.º 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldDelegateDeletionOptionToStores()
        public virtual void ShouldDelegateDeletionOptionToStores()
        {
            // GIVEN
            StoreFactory storeFactory = storeFactory(Config.defaults(), DELETE_ON_CLOSE);

            // WHEN
            _neoStores = storeFactory.OpenAllNeoStores(true);
            assertTrue(_fsRule.get().listFiles(_testDirectory.databaseDir()).length >= StoreType.values().length);

            // THEN
            _neoStores.close();
            assertEquals(0, _fsRule.get().listFiles(_testDirectory.databaseDir()).length);
        }
Ejemplo n.º 5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void after()
        public virtual void After()
        {
            _neoStores.close();
        }
Ejemplo n.º 6
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void closeStore()
        public virtual void CloseStore()
        {
            _neoStores.close();
        }