- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 477 for maximal (0.03 sec)
-
guava-tests/test/com/google/common/io/CharStreamsTest.java
// nothing really to assert? assertSame(CharStreams.nullWriter(), CharStreams.nullWriter()); } /** * Returns a reader wrapping the given reader that only reads half of the maximum number of * characters that it could read in read(char[], int, int). */ private static Reader newNonBufferFillingReader(Reader reader) { return new FilterReader(reader) { @OverrideRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
} /** * Reads a null-terminated string from the buffer with specified encoding * @param src source buffer * @param srcIndex starting index in the buffer * @param maxLen maximum length to read * @param unicode whether to use Unicode encoding * @return read string */ public String readString(final byte[] src, int srcIndex, final int maxLen, final boolean unicode) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0) -
CLAUDE.md
3. Add tests 4. Handle resources properly (try-with-resources) 5. Consider thread safety 6. Update JavaDoc ### When Fixing Bugs 1. Write failing test first 2. Understand root cause 3. Minimal changes 4. Verify no regressions ### When Refactoring 1. Preserve behavior 2. Keep tests green 3. Small incremental steps 4. Don't mix with new features ### Code Quality Checklist
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Fri Nov 28 17:31:34 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
assertEquals(0, bytesRead); } @Test @DisplayName("Test size calculation with different buffer sizes") void testSizeCalculationWithDifferentBufferSizes() { // Test with smaller maximum buffer size when(mockConfig.getMaximumBufferSize()).thenReturn(8192); when(mockConfig.getListSize()).thenReturn(16384); request = new Smb2QueryDirectoryRequest(mockConfig);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
assertThrows(SMBProtocolDecodingException.class, () -> { notifyInfo.decode(buffer, 0, buffer.length); }); } @Test @DisplayName("Test decode with maximum file name length") void testDecodeMaxFileNameLength() throws SMBProtocolDecodingException { // Create a very long filename (but within reasonable bounds) StringBuilder sb = new StringBuilder();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
} @Test @DisplayName("parse should handle truncated message missing context") void testParse_InputLengthTooSmallForContext() { // Given // Create a minimal Type2 message manually byte[] truncatedMessage = new byte[32]; System.arraycopy(Type2Message.NTLMSSP_SIGNATURE, 0, truncatedMessage, 0, 8);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
*/ public long getMinResponseTime() { long min = minResponseTime.get(); return min == Long.MAX_VALUE ? 0 : min; } /** * Get maximum response time * * @return maximum response time in milliseconds */ public long getMaxResponseTime() { return maxResponseTime.get(); } /** * Close circuit breaker and cleanup resourcesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
@BeforeEach void setUp() { // Setup will be done per test as needed } @Test void testConstructorWithMinimalParameters() throws UnknownHostException { // Test the constructor with minimal parameters mockName = new Name(mockConfig, "TESTHOST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); assertNotNull(nbtAddress);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
} } @Nested @DisplayName("Edge Cases and Error Conditions") class EdgeCasesTests { @Test @DisplayName("Should handle maximum size arrays") void testMaximumSizeArrays() { // Test with reasonably large arrays int[] largeCiphers = new int[100]; for (int i = 0; i < 100; i++) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
void dispose_nullContext_noop() throws Exception { setPrivateField(ctx, "gssContext", null); assertDoesNotThrow(() -> ctx.dispose()); } } // Helper to build a minimal exported name token understood by MIEName(byte[]) // Format: TOK_ID(2 bytes) | OID_LEN(2 bytes) | OID_DER | NAME_LEN(4 bytes) | NAME(bytes) private static byte[] buildExportName(Oid mech, String name) throws GSSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0)