Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSingletonInstance (0.86 sec)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    class MonotonicClockTest {
    
        @Test
        @DisplayName("MonotonicClock singleton instance should always return the same instance")
        void testSingletonInstance() {
            MonotonicClock clock1 = MonotonicClock.get();
            MonotonicClock clock2 = MonotonicClock.get();
    
            assertSame(clock1, clock2, "Multiple calls to get() should return the same instance");
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            logger.resetStatistics();
            logger.setJsonLoggingEnabled(false);
            logger.setSensitiveDataMaskingEnabled(true);
        }
    
        @Test
        @DisplayName("Test singleton instance")
        void testSingletonInstance() {
            SecurityAuditLogger logger1 = SecurityAuditLogger.getInstance();
            SecurityAuditLogger logger2 = SecurityAuditLogger.getInstance();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top