- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 82 for MAX_VALUE (1.69 sec)
-
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
} /** * Parameterised test of capacity values, including edge cases such as * zero and negative capacities. */ @ParameterizedTest @ValueSource(longs = { 0L, -1L, Long.MAX_VALUE }) @DisplayName("capacity may be any long value") void testCapacityEdgeValues(long capacity) { when(mockAllocInfo.getCapacity()).thenReturn(capacity); assertEquals(capacity, mockAllocInfo.getCapacity());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
// Prepare test data with maximum int values byte[] buffer = new byte[22]; int idFileSystem = Integer.MAX_VALUE; int sectPerAlloc = 100; int alloc = Integer.MAX_VALUE / 200; int free = Integer.MAX_VALUE / 200; int bytesPerSect = 512; // Encode test data int offset = 0; SMBUtil.writeInt4(idFileSystem, buffer, offset);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/text/Tokenizer.java
/** * Represents a word. */ public static final int TT_WORD = -3; private static final int TT_NOTHING = -4; private static final int NEED_CHAR = Integer.MAX_VALUE; private static final int QUOTE = '\''; private static final byte CT_WHITESPACE = 1; private static final byte CT_ALPHA = 4; private final byte[] ctype;Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java
reader = new ESSourceReader(client, settings, indexName); reader.setScrollSize(1000); reader.addSort(SortBuilders.fieldSort("field2").order(SortOrder.DESC)); count = 0; prev = Integer.MAX_VALUE; while ((source = reader.read()) != null) { int current = Integer.parseInt(source.get("field2").toString()); assertTrue(prev > current); prev = current; count++;
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Nov 23 13:04:17 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/WinErrorTest.java
assertEquals(expectedMessage, lookupMessage(code).orElse(null)); } @ParameterizedTest @ValueSource(ints = { -1, Integer.MIN_VALUE, Integer.MAX_VALUE }) @DisplayName("Unknown codes: lookup returns empty Optional") void lookup_returns_empty_for_unknown_codes(int unknownCode) { // Invalid inputs: codes not present should yield no message
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
} @Test @DisplayName("Should handle locks with maximum values") void testLocksWithMaximumValues() { Smb2Lock[] locks = new Smb2Lock[] { new Smb2Lock(Long.MAX_VALUE, Long.MAX_VALUE, Integer.MAX_VALUE) }; Smb2LockRequest req = new Smb2LockRequest(mockConfig, testFileId, locks); byte[] buffer = new byte[256];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java
/** * Default constructor. */ public CustomSizeValidator() { // Empty constructor } private int min = 0; private int max = Integer.MAX_VALUE; private String message; @Override public void initialize(final CustomSize constraintAnnotation) { final FessConfig fessConfig = ComponentUtil.getFessConfig();Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
* @throws ArithmeticException if operation would overflow */ public static void validateIntegerAddition(int a, int b, String operation) { long result = (long) a + (long) b; if (result > Integer.MAX_VALUE || result < Integer.MIN_VALUE) { throw new ArithmeticException(operation + " would cause integer overflow: " + a + " + " + b); } } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
return Stream.of(Arguments.of("\\\\example\\\\server", 0x000F0000), Arguments.of(null, 0), Arguments.of("\\\\localhost", -1), Arguments.of("\\\\127.0.0.1", Integer.MAX_VALUE), Arguments.of("", 0x00020000), Arguments.of("\\\\server.domain.com", 0)); } @ParameterizedTest @MethodSource("provideParameters")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
TestNegotiateContextRequest request3 = new TestNegotiateContextRequest(Integer.MAX_VALUE); assertEquals(0x1, request1.getContextType()); assertEquals(0x2, request2.getContextType()); assertEquals(Integer.MAX_VALUE, request3.getContextType()); } @Test @DisplayName("Should verify interface is Encodable")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0)