예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void noNotificationForTransactionLogs()
        public virtual void NoNotificationForTransactionLogs()
        {
            AssertableLogProvider            internalLogProvider = new AssertableLogProvider(false);
            DefaultFileDeletionEventListener listener            = BuildListener(internalLogProvider);

            listener.FileDeleted(TransactionLogFiles.DEFAULT_NAME + ".0");
            listener.FileDeleted(TransactionLogFiles.DEFAULT_NAME + ".1");

            internalLogProvider.AssertNoLoggingOccurred();
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void notificationInLogAboutFileDeletion()
        public virtual void NotificationInLogAboutFileDeletion()
        {
            AssertableLogProvider            internalLogProvider = new AssertableLogProvider(false);
            DefaultFileDeletionEventListener listener            = BuildListener(internalLogProvider);

            listener.FileDeleted("testFile.db");
            listener.FileDeleted("anotherDirectory");

            internalLogProvider.RawMessageMatcher().assertContains("'testFile.db' which belongs to the store was deleted while database was running.");
            internalLogProvider.RawMessageMatcher().assertContains("'anotherDirectory' which belongs to the store was deleted while database was running.");
        }