- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 51 for getYear (0.46 sec)
-
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
// Given Smb2CloseRequest request = new Smb2CloseRequest(mockConfig, emptyFileId); // When request.setFileId(testFileId); // Then - verify through internal state (would need getter or reflection in real scenario) // Since we can't directly verify the internal state, we create a new request to test Smb2CloseRequest newRequest = new Smb2CloseRequest(mockConfig, testFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
data[0] = 99; assertFalse(original.equals(copy), "After mutation, original should not equal previous clone"); // Ensure arrays are independent: mutate clone's buffer via getter copy.get()[1] = 77; assertNotEquals(original.toString(), copy.toString(), "Mutating clone should not affect original"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
void testInitialTotalBytesWrittenValue() { assertEquals(0, response.getTotalBytesWritten()); } } @Nested @DisplayName("Getter Tests") class GetterTests { @Test @DisplayName("Should get chunksWritten value") void testGetChunksWritten() { // Initial value should be 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
.thenReturn(0); // auth_value length assertThrows(NdrException.class, () -> message.decode(mockBuffer)); } } @Nested @DisplayName("Getter Tests") class GetterTests { @Test @DisplayName("getPtype should return correct packet type") void testGetPtype() { message.ptype = DcerpcConstants.RPC_PT_REQUEST;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
ntlmConnection.disconnect(); // Assert verify(mockConnection).disconnect(); // Connection should be closed after disconnect } /** * Test simple getter methods that should trigger the handshake. * We mock a simple 200 OK response to test the handshake is called. * @throws IOException */ @Test void testGettersTriggerHandshake() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java
assertTrue(result.contains("referrals=[")); assertFalse(result.contains("referrals=[]")); } } @Nested @DisplayName("Getter Methods Tests") class GetterTests { @BeforeEach void setupBuffer() { // Create buffer with 3 v1 referrals byte[] testBuffer = new byte[100];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Chars.java
} /** * Returns the {@code char} value whose big-endian representation is stored in the first 2 bytes * of {@code bytes}; equivalent to {@code ByteBuffer.wrap(bytes).getChar()}. For example, the * input byte array {@code {0x54, 0x32}} would yield the {@code char} value {@code '\\u5432'}. * * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertThrows(ClassCastException.class, () -> { referralData.unwrap(IncompatibleReferralData.class); }); } } @Nested @DisplayName("Property Getter and Setter Tests") class PropertyTests { @Test @DisplayName("Should get and set domain") void testDomain() { assertNull(referralData.getDomain());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
cmd/metacache-server-pool.go
} if !returned { xioutil.SafeClose(outCh) } xioutil.SafeClose(saveCh) }() entries, err = filteredResults() if err == nil { // Check if listing recorded an error. err = meta.getErr() } return entries, err
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon May 26 07:06:43 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
assertEquals(100, referral.getSize()); assertEquals(expectedPath, referral.getRpath()); assertNull(referral.getAltPath()); assertNull(referral.getNode()); } // Getter Tests @Test public void testGetters() { // Setup a complete referral ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 3);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0)