- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 418 for 2045 (0.01 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
when(mockFileInfo.encode(any(byte[].class), anyInt())).thenReturn(encodeSize); trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo); byte[] buffer = new byte[2048]; int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0); // Should write encoded data + 6 bytes padding assertEquals(encodeSize + 6, written); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
String longPath = "very\\long\\path\\to\\some\\deeply\\nested\\file\\in\\directory\\structure.txt"; request = new Smb2CreateRequest(mockConfig, longPath); byte[] buffer = new byte[2048]; int bytesWritten = request.writeBytesWireFormat(buffer, 0); assertTrue(bytesWritten > 0); // Verify name length field at offset 46 (after 44 bytes of fixed fields + 2 for name offset)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
Smb2SessionSetupRequest req = new Smb2SessionSetupRequest(mockContext, TEST_SECURITY_MODE, TEST_CAPABILITIES, TEST_PREVIOUS_SESSION_ID, token); byte[] buffer = new byte[2048]; // When req.encode(buffer, 0); // Then int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH; // Verify token lengthRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java
// add an at-the-maximum-weight entry getAll(cache, asList(45)); CacheTesting.drainRecencyQueues(cache); assertThat(keySet).containsExactly(0, 45); // add an over-the-maximum-weight entry getAll(cache, asList(46)); CacheTesting.drainRecencyQueues(cache); assertThat(keySet).contains(0); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 15.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt
/* * Copyright (C) 2015 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 24.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
/* * Copyright (C) 2005 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 32.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
/* * © 2025 CodeLibs, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
// This test is theoretical as we can't create huge buffers // but tests the boundary conditions if (aceCount <= 10) { // Only test small counts practically byte[] buffer = new byte[2048]; prepareSecurityDescriptorBufferWithDACL(buffer, 0, aceCount); SecurityDescriptor sd = new SecurityDescriptor(); sd.decode(buffer, 0, buffer.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
} @Test @DisplayName("Should handle notification with long filename") void testLongFilename() throws Exception { // Given byte[] buffer = new byte[2048]; int offset = 0; setHeaderStart(response, 64); // Create a long filename StringBuilder longName = new StringBuilder(); for (int i = 0; i < 100; i++) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
} @Test @DisplayName("Should maintain immutability of structure size") void testStructureSizeImmutability() throws Exception { // Given byte[] buffer = new byte[2048]; // When - encode at multiple positions for (int i = 0; i < 5; i++) { Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, TEST_PATH); req.encode(buffer, i * 200);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)