Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldIssueWarningWhenUsingOpenJDKClientVmVersion7()
        public virtual void ShouldIssueWarningWhenUsingOpenJDKClientVmVersion7()
        {
            BufferingLog bufferingLogger = new BufferingLog();

            (new JvmChecker(bufferingLogger, new CannedJvmMetadataRepository("OpenJDK Client VM", "1.7.0-b147"))).CheckJvmCompatibilityAndIssueWarning();

            assertThat(bufferingLogger.ToString().Trim(), @is(INCOMPATIBLE_JVM_VERSION_WARNING));
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldIssueWarningWhenUsingHotspotServerVmVersion7InThe32BitVersion()
        public virtual void ShouldIssueWarningWhenUsingHotspotServerVmVersion7InThe32BitVersion()
        {
            BufferingLog bufferingLogger = new BufferingLog();

            (new JvmChecker(bufferingLogger, new CannedJvmMetadataRepository("Java HotSpot(TM) Server VM", "1.7.0_25-b15"))).CheckJvmCompatibilityAndIssueWarning();

            assertThat(bufferingLogger.ToString().Trim(), @is(INCOMPATIBLE_JVM_VERSION_WARNING));
        }
Пример #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotIssueWarningWhenUsingIbmJ9Vm()
        public virtual void ShouldNotIssueWarningWhenUsingIbmJ9Vm()
        {
            BufferingLog bufferingLogger = new BufferingLog();

            (new JvmChecker(bufferingLogger, new CannedJvmMetadataRepository("IBM J9 VM", "1.8"))).CheckJvmCompatibilityAndIssueWarning();

            assertTrue(bufferingLogger.ToString().Length == 0);
        }
Пример #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotIssueWarningWhenUsingHotspotServerVmVersion8()
        public virtual void ShouldNotIssueWarningWhenUsingHotspotServerVmVersion8()
        {
            BufferingLog bufferingLogger = new BufferingLog();

            (new JvmChecker(bufferingLogger, new CannedJvmMetadataRepository("Java HotSpot(TM) 64-Bit Server VM", "1.8.0_45"))).CheckJvmCompatibilityAndIssueWarning();

            assertTrue(bufferingLogger.ToString().Length == 0);
        }
Пример #5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldIssueWarningWhenUsingUnsupportedJvm()
        public virtual void ShouldIssueWarningWhenUsingUnsupportedJvm()
        {
            BufferingLog bufferingLogger = new BufferingLog();

            (new JvmChecker(bufferingLogger, new CannedJvmMetadataRepository("MyOwnJDK 64-Bit Awesome VM", "1.7"))).CheckJvmCompatibilityAndIssueWarning();

            assertThat(bufferingLogger.ToString().Trim(), @is(INCOMPATIBLE_JVM_WARNING));
        }
Пример #6
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void verboseFactoryCreateVerboseTracer()
        public virtual void VerboseFactoryCreateVerboseTracer()
        {
            BufferingLog    msgLog          = new BufferingLog();
            PageCacheTracer pageCacheTracer = TracerFactory().createPageCacheTracer(new Monitors(), new OnDemandJobScheduler(), Clocks.nanoClock(), msgLog);

            pageCacheTracer.BeginCacheFlush();
            assertEquals("Start whole page cache flush.", msgLog.ToString().Trim());
        }