Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldShutdownCorrectlyWhenCheckPointingOnShutdownFails()
        internal virtual void ShouldShutdownCorrectlyWhenCheckPointingOnShutdownFails()
        {
            TestGraphDatabaseFactoryWithFailingPageCacheFlush factory = new TestGraphDatabaseFactoryWithFailingPageCacheFlush();

            assertThrows(typeof(LifecycleException), () => factory.NewEmbeddedDatabase(_testDirectory.storeDir()).shutdown());
            assertEquals(LifecycleStatus.SHUTDOWN, factory.NeoStoreDataSourceStatus);
        }
Exemplo n.º 2
0
 public GraphDatabaseFacadeFactoryAnonymousInnerClass(TestGraphDatabaseFactoryWithFailingPageCacheFlush outerInstance, DatabaseInfo community, File storeDir, Config config, GraphDatabaseFacadeFactory.Dependencies dependencies) : base(community, CommunityEditionModule::new)