- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 429 for properly (1.05 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
Key key = new KerberosKey(null, new byte[16], KerberosConstants.RC4_ENC_TYPE, 0); byte[] data = new byte[32]; // Dummy data // The test will likely fail with "Checksum failed" as the data is not properly encrypted // but it proves the decryption path is taken. assertThrows(GeneralSecurityException.class, () -> KerberosEncData.decrypt(data, key, KerberosConstants.RC4_ENC_TYPE)); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
@BeforeEach public void setUp() { mockConfig = Mockito.mock(Configuration.class); response = new Smb2NegotiateResponse(mockConfig); } /** * Test that malformed structure size is properly rejected. */ @Test public void testMalformedStructureSize() { byte[] malformedBuffer = createBasicNegotiateResponseBuffer(); // Set incorrect structure size (should be 65)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
// Given byte[] buffer = new byte[64]; int bufferIndex = 8; // Prepare test data in buffer (40 bytes of data) // Use SMBUtil to properly encode times in Windows FILETIME format SMBUtil.writeTime(TEST_CREATE_TIME, buffer, bufferIndex); SMBUtil.writeTime(TEST_LAST_ACCESS_TIME, buffer, bufferIndex + 8);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
// SMB_COM_LOGOFF_ANDX = 0x74 assertEquals((byte) 0x74, msg.command, "Command should be SMB_COM_LOGOFF_ANDX"); } @Test @DisplayName("constructor with mock andx properly sets andx field") void constructorWithMockAndx() { // Create a mock ServerMessageBlock ServerMessageBlock mockAndx = mock(ServerMessageBlock.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessEnumTest.java
assertNotNull(WitnessRegistration.WitnessRegistrationState.EXPIRED); } @Test void testEnumToStringConversions() { // Test that enum toString methods work properly assertEquals("CLUSTER_WITNESS", WitnessServiceType.CLUSTER_WITNESS.toString()); assertEquals("FILE_SERVER_WITNESS", WitnessServiceType.FILE_SERVER_WITNESS.toString());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
void sendrecv_smb2_ioctl() throws Exception { // Arrange SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\x"); // Setup the tree handle properly when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); // Setup for ensureOpen when(tree.isSMB2()).thenReturn(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
import java.nio.file.Files; import java.util.logging.Logger; /** * ContentCache is a class that provides a way to cache content either in memory or in a file. * It implements the Closeable interface to ensure that resources are properly released. * * <p>This class supports two types of content caching: * <ul> * <li>In-memory caching using a byte array</li> * <li>File-based caching using a File object</li> * </ul> *
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java
bufferIndex += stringWireLength(this.nativeFileSystem, bufferIndex); } } catch (final Exception e) { // Ignore errors - some servers don't properly return this field // Keep the default empty string value } } return bufferIndex - start; } @Override public String toString() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
try { // Add null check to prevent NPE if object was not fully constructed if (this.usageCount != null && this.usageCount.get() != 0) { log.warn("Tree handle was not properly released, performing emergency cleanup: " + (this.resourceLoc != null ? this.resourceLoc.getURL() : "unknown")); emergencyReleaseHandle(); } } catch (Exception e) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
} /** * Test the init method when CIFSException occurs. * Verifies that configuration properties are properly validated during initialization. */ @Test void testInitWithCIFSException() { // Test with valid configuration - should initialize successfullyRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0)