Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for consistently (1.85 sec)

  1. src/test/java/jcifs/EmptyIteratorTest.java

        @Test
        @DisplayName("EmptyIterator should behave consistently across multiple calls")
        void testConsistentBehavior() {
            // When & Then - test multiple sequential calls
            for (int i = 0; i < 10; i++) {
                assertFalse(emptyIterator.hasNext(), "hasNext should consistently return false");
                assertNull(emptyIterator.next(), "next should consistently return null");
            }
        }
    
        @RepeatedTest(5)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

            // This is expected behavior since they're created with the same configuration
            assertEquals(response1.toString(), response2.toString());
        }
    
        @Test
        @DisplayName("All write methods should consistently return 0")
        void testAllWriteMethodsReturnZero() {
            // Arrange
            byte[] buffer = new byte[100];
    
            // Act & Assert
            assertEquals(0, response.writeSetupWireFormat(buffer, 0));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

        @DisplayName("Test implementation consistency")
        void testImplementationConsistency() {
            // Given
            SmbNegotiationRequest consistentRequest = new TestSmbNegotiationRequest(true);
    
            // When & Then - verify consistency across multiple calls
            for (int i = 0; i < 10; i++) {
                assertTrue(consistentRequest.isSigningEnforced(), "Implementation should consistently return the same value");
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            // Then - should be same instances
            assertSame(config1, config2, "Configuration should be consistent");
            assertSame(dfs1, dfs2, "DFS resolver should be consistent");
            assertSame(cache1, cache2, "Buffer cache should be consistent");
        }
    
        @Test
        @DisplayName("Context should provide working resource creation")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            @Test
            @DisplayName("Should always force unicode")
            void testIsForceUnicode() {
                assertTrue(response.isForceUnicode());
            }
    
            @Test
            @DisplayName("Should consistently return true for unicode")
            void testIsForceUnicodeMultipleCalls() {
                for (int i = 0; i < 5; i++) {
                    assertTrue(response.isForceUnicode());
                }
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            // Call readBytesWireFormat multiple times
            for (int i = 0; i < 5; i++) {
                int result = response.readBytesWireFormat(buffer, bufferIndex);
                assertEquals(2, result, "Should consistently return 2 on call " + (i + 1));
            }
        }
    
        @Test
        @DisplayName("Test edge case with maximum buffer index")
        void testReadBytesWireFormatMaxBufferIndex() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                assertFalse(auth1.equals(auth3));
    
                // Test empty vs password
                assertFalse(auth2.equals(auth3));
    
                // These operations should complete quickly and consistently
                long startTime = System.nanoTime();
                for (int i = 0; i < 1000; i++) {
                    auth1.equals(auth2);
                    auth1.equals(auth3);
                    auth2.equals(auth3);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbSessionTest.java

            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTest {
    
            @Test
            @DisplayName("Should handle repeated method calls consistently")
            void shouldHandleRepeatedMethodCallsConsistently() {
                SmbSession mockSession = mock(SmbSession.class);
                Configuration mockConfig = mock(Configuration.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/MultiChannelManager.java

                jcifs.CIFSContext context = createDefaultContext();
    
                // Create transport with multi-channel specific settings
                // Multi-channel transports should use signing consistently with the main session
                boolean forceSigning = context.getConfig().isSigningEnforced();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                assertEquals(200L, SMBUtil.readInt8(smallBuffer, 8));
                assertEquals(1, SMBUtil.readInt4(smallBuffer, 16));
            }
    
            @ParameterizedTest
            @DisplayName("Should encode consistently with various flag values")
            @ValueSource(ints = { 0, 1, 2, 4, 16, 0xFF, 0xFFFF, 0xFFFFFF, 0x7FFFFFFF, -1 })
            void testEncodingWithVariousFlags(int flags) {
                lock = new Smb2Lock(1024L, 2048L, flags);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top