- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 104 for unneeded (0.05 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
@Test @DisplayName("Should handle response at end of buffer") void testResponseAtEndOfBuffer() throws SMBProtocolDecodingException { byte[] buffer = new byte[20]; // Exact size needed SMBUtil.writeInt2(17, buffer, 0); SMBUtil.writeInt2(0, buffer, 2); SMBUtil.writeInt4(999, buffer, 4); SMBUtil.writeInt4(111, buffer, 8);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
when(mockCtx.supportsIntegrity()).thenReturn(true); when(mockCtx.calculateMIC(any(byte[].class))).thenReturn(new byte[] { 42 }); // verifyMIC returns void; no stubbing needed when(mockCtx.isMICAvailable()).thenReturn(true); // Act useContext(mockCtx); // Assert: verify key interactions and ordering where meaningful
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
@Test @DisplayName("Test readBytesWireFormat with minimum buffer size") void testReadBytesWireFormatMinimumBufferSize() throws SMBProtocolDecodingException { byte[] buffer = new byte[2]; // Minimum size needed for structure size int bufferIndex = 0; SMBUtil.writeInt2(2, buffer, bufferIndex); int result = response.readBytesWireFormat(buffer, bufferIndex); assertEquals(2, result);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
byte[] buffer = new byte[testString.length() * 2 + 2 + 1]; // +1 for alignment int len = smb.writeString(testString, buffer, 1); // When dstIndex=1 and headerStart=1, (1-1)%2=0, no alignment padding needed // Length is string bytes (15*2) + 2 null terminators = 32 assertEquals(testString.length() * 2 + 2, len); String readString = smb.readString(buffer, 1); assertEquals(testString, readString);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
rem = 8 + rem; } return size + 8 - rem; } /** * Calculates padding needed to align to 8-byte boundary from header start. * * @param dstIndex the current destination index * @return number of padding bytes needed */ protected final int pad8(final int dstIndex) { final int fromHdr = dstIndex - this.headerStart;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
return sessionIdList; }); } /** * Generates a hashed ID from the provided URL ID string. * Encodes special characters using URL encoding or Base64 encoding as needed, * then applies a message digest algorithm to create a unique hash. * * @param urlId the URL ID string to generate a hash for * @return a hashed ID string generated from the input URL ID */Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
ServerData serverData = new ServerData(); when(nego.getServerData()).thenReturn(serverData); when(transport.getNegotiateResponse()).thenReturn(nego); // Mock config methods needed for SMB1 when(config.getPid()).thenReturn(1234); SmbComTreeConnectAndXResponse response = mock(SmbComTreeConnectAndXResponse.class); when(response.getService()).thenReturn("A:");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/FessBoot.java
* Handles SSL configuration and cookie settings for the Tomcat server. */ static class FessBootPropsTranslator extends BootPropsTranslator { /** * Sets up server configuration if needed, including SSL and cookie settings. * * @param logger the boot logger for logging configuration messages * @param server the Tomcat server instance * @param connector the Tomcat connectorRegistered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
*/ public boolean isExpired() { return System.currentTimeMillis() - lastUpdateTime > maxAge; } /** * Check if cache needs refresh * * @return true if refresh needed */ public boolean needsRefresh() { return isExpired() || hasChanges; } /** * Mark the cache as complete (full enumeration cached) */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
* * Provides compression using Java's built-in deflate algorithm as a base * for LZ77-based compression. For production use, more specialized * implementations of LZNT1 and Pattern_V1 algorithms would be needed. */ public class DefaultCompressionService implements CompressionService { private static final Logger log = LoggerFactory.getLogger(DefaultCompressionService.class); // Configuration constants
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0)