- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 870 for certify (0.03 sec)
-
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
entry.encode(mockNdrBuffer); // Then: Should encode all fields verify(mockNdrBuffer).align(4); verify(mockNdrBuffer).enc_ndr_long(1); verify(mockNdrBuffer).enc_ndr_short((short) 4); verify(mockNdrBuffer).enc_ndr_short((short) 6); verify(mockNdrBuffer).enc_ndr_referent(entry.name.buffer, 1); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// Then // Verify that the 'sam' field is set correctly assertEquals(mockSamArray, msrpc.sam, "The 'sam' field should be initialized with the provided SamrSamArray."); // Verify that the 'ptype' field is set to 0 assertEquals(0, msrpc.getPtype(), "The 'ptype' field should be initialized to 0."); // Verify that the 'flags' field is set to DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
AvTargetName avTargetName = new AvTargetName(rawBytes); // Verify the AvPair type is MsvAvTargetName assertEquals(AvPair.MsvAvTargetName, avTargetName.getType(), "AvPair type should be MsvAvTargetName"); // Verify the raw bytes are correctly stored assertArrayEquals(rawBytes, avTargetName.getRaw(), "Raw bytes should match the input"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
} /** * Verify that the encode method forwards the value to NdrBuffer. */ @Test @DisplayName("Encode should call NdrBuffer.enc_ndr_hyper with correct value") public void testEncodeInteraction() throws NdrException { NdrBuffer buf = mock(NdrBuffer.class); NdrHyper hyper = new NdrHyper(12345L); hyper.encode(buf); verify(buf, times(1)).enc_ndr_hyper(12345L); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
// Then: Should create successfully assertNotNull(iterator); assertFalse(iterator.hasNext()); // Empty results // Verify tree handle was acquired verify(treeHandle).acquire(); // Cleanup iterator.close(); } @Test @DisplayName("Constructor should handle workgroup type with non-empty host")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
} } }; assertDoesNotThrow(() -> networkExplorer.init(servletConfig)); // Verify parameter reading verify(servletConfig).getInitParameter("jcifs.smb.client.domain"); verify(servletConfig).getInitParameter("jcifs.http.enableBasic"); } /** * Test doGet with no authentication - should return 401 */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
// Then assertTrue(async); assertEquals(100, size); assertEquals(3000, timeout); assertTrue(canChain); verify(request).isResponseAsync(); verify(request).size(); verify(request).getOverrideTimeout(); verify(request).allowChain(nextRequest); } @Test @DisplayName("Test chaining scenario with multiple requests") void testChainingScenario() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
// Act pipe.customizeCreate(req, resp); // Assert: verify interactions with dependencies verify(req, times(1)).addFlags0(0x16); verify(resp, times(1)).setExtended(true); verify(resp, never()).setExtended(false); } @Test @DisplayName("openPipe returns a handle bound to this pipe")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
// we need to catch it to verify that pipe.close() was still called try { handle.close(); fail("Expected IOException to be thrown"); } catch (IOException e) { assertEquals("Handle close failed", e.getMessage()); } verify(mockSmbPipeHandleInternal).close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
int result = response.readDataWireFormat(buffer, bufferIndex, len); // Verify the result assertEquals(len, result, "readDataWireFormat should return the length of data read."); // Verify that the receive method on the input stream was called exactly once verify(mockPipeIn, times(1)).receive(buffer, bufferIndex, len); } /** * Tests the toString method.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0)