- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 218 for SMALL (0.01 sec)
-
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
* interaction with {@link NdrBuffer}. All public behaviour is exercised. */ @ExtendWith(MockitoExtension.class) class NdrShortTest { /** * A small reusable buffer for encode/decode tests. */ private byte[] raw; private NdrBuffer buf; @BeforeEach void setUp() { // 10 bytes is more than enough for the 2-byte shortRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
* PackageSanityTests. (The test would run on the JVM, too, if not for the suppression below, and * that would be a problem because it violates small-test rules. Note that we strip the * suppression externally, but it's OK because we don't enforce test-size rules there.) * * We'd just use PackageSanityTests directly, saving us from needing this separate type, but we're
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 02:48:50 UTC 2024 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
// Arrange TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); byte[] dst = new byte[5]; // Buffer too small int dstIndex = 0; // Act int bytesWritten = trans.writeDataWireFormat(dst, dstIndex); // Assert assertEquals(0, bytesWritten); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
@Test @DisplayName("Should throw exception with insufficient buffer") void testReadBytesWireFormatInsufficientBuffer() { // Given byte[] buffer = new byte[1]; // Too small // When & Then assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readBytesWireFormat(buffer, 0)); } @TestRegistered: 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/smb/PreauthIntegrityServiceTest.java
}); assertThrows(CIFSException.class, () -> { preauthService.initializeSession("test", new byte[8], PreauthIntegrityService.HASH_ALGO_SHA512); // Too small }); } @Test @DisplayName("Test unsupported hash algorithm") public void testUnsupportedHashAlgorithm() { byte[] salt = preauthService.generatePreauthSalt();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashing.java
/** Default size of a compact hash-based collection. */ static final int DEFAULT_SIZE = 3; /** * Minimum size of the hash table of a compact hash-based collection. Because small hash tables * use a byte[], any smaller size uses the same amount of memory due to object padding. */ private static final int MIN_HASH_TABLE_SIZE = 4;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
verify(mockSmbPipeHandleInternal, times(2)).recv(any(byte[].class), anyInt(), anyInt()); } @Test @DisplayName("Should throw IllegalArgumentException for small buffer") void testDoReceiveFragment_BufferTooSmall() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); byte[] buf = new byte[50]; // Less than maxRecv (4280)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* @return the same value cast to {@code int} if it is in the range of the {@code int} type, * {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too * small */ public static int saturatedCast(long value) { if (value > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } if (value < Integer.MIN_VALUE) { return Integer.MIN_VALUE; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 31.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.MockedStatic; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.smb1.UniAddress; /** * Very small test suite that exercises the most important state-changing * behaviour of {@link SmbSession}. The tests use Mockito to stub the * heavy network interactions through {@link SmbTransport}. */ @ExtendWith(MockitoExtension.class)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0)