Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 336 for directly (0.37 sec)

  1. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

            // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper)
            // and the credentials. The delegate is tested implicitly by calling super's methods.
            // We can directly test getCredentials() to ensure it returns the initial credentials.
            assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            assertNotNull(constantTimeMethod, "constantTimeEquals method should exist");
            constantTimeMethod.setAccessible(true);
    
            // Test the method directly
            char[] password1 = "testpassword".toCharArray();
            char[] password2 = "testpassword".toCharArray();
            char[] password3 = "testpassworX".toCharArray();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/util/SMBUtilTest.java

            }
    
            // Test zero time separately - it's handled specially
            SMBUtil.writeTime(0L, buffer, 0);
            long readTime = SMBUtil.readTime(buffer, 0);
            // When writing 0, it writes 0 directly, and when reading 0, it returns negative offset
            assertEquals(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601, readTime);
        }
    
        @Test
        void testUTimeConversionRoundTrip() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                SMBUtil.writeInt8(456L, buffer, 40); // session ID
    
                customMessage.setBytesRead(10);
                customMessage.decode(buffer, 0);
    
                // Can't directly test protected method, but decode should work without exception
                assertTrue(customMessage.getLength() > 0);
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

                super(config, command, subcommand);
            }
    
            // Expose errorCode setter for testing - access protected field directly
            public void setTestErrorCode(int code) {
                this.errorCode = code;
            }
    
            @Override
            protected int writeSetupWireFormat(byte[] dst, int dstIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/DES.java

    // PERFORMANCE, SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT
    // NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, DIRECT LIFE
    // SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE
    // SOFTWARE COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE
    // PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES").  WIDGET WORKSHOP
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmSspTest.java

            // Execute
            NtlmPasswordAuthentication result = ntlmSsp.doAuthentication(mockCifsContext, mockRequest, mockResponse, challenge);
    
            // Verify that the behavior is the same as calling the static method directly
            assertNull(result, "Authentication result should be null");
            verify(mockResponse).setHeader("WWW-Authenticate", "NTLM");
            verify(mockResponse).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  8. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            System.arraycopy(buffer, securityBufferOffset, actualToken, 0, token.length);
            assertArrayEquals(token, actualToken);
        }
    
        @Test
        @DisplayName("Should test writeBytesWireFormat directly")
        void testWriteBytesWireFormatDirect() throws Exception {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
    
            // First encode to set headerStart
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

                    assertEquals(0, buffer[pathStart + i * 2 + 1]);
                }
            }
        }
    
        @Test
        @DisplayName("Should test writeBytesWireFormat directly")
        void testWriteBytesWireFormatDirect() {
            // Given
            byte[] buffer = new byte[512];
            int offset = 100;
    
            // First encode to set headerStart
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            assertEquals(0, Encdec.dec_uint32le(buffer, 0)); // Should encode 0 for null
        }
    
        @Test
        void testToString() {
            ndrBuffer.setIndex(10);
            ndrBuffer.setLength(20); // Set length directly for toString test
            String expected = "start=0,index=10,length=20";
            assertEquals(expected, ndrBuffer.toString());
    
            NdrBuffer offsetBuffer = new NdrBuffer(buffer, 5);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top