Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void createAndCloseContainerWithPageCacheAndScheduler() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void CreateAndCloseContainerWithPageCacheAndScheduler()
        {
            BackupPageCacheContainer pageCacheContainer = BackupPageCacheContainer.Of(_pageCache, _jobScheduler);

            pageCacheContainer.Close();

            verify(_pageCache).close();
            verify(_jobScheduler).close();
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void closePageCacheContainerOnClose() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void ClosePageCacheContainerOnClose()
        {
            PageCache pageCache = mock(typeof(PageCache));
            BackupPageCacheContainer container = BackupPageCacheContainer.Of(pageCache);
//JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter:
            BackupProtocolService protocolService = new BackupProtocolService(EphemeralFileSystemAbstraction::new, NullLogProvider.Instance, NULL_OUTPUT_STREAM, new Monitors(), container);

            protocolService.Close();

            verify(pageCache).close();
        }