- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 721 for correcte (0.03 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
@Test @DisplayName("Should create correct response type") void testCreateResponse() { Smb2EchoResponse response = echoRequest.createResponse(mockContext, echoRequest); assertNotNull(response); assertInstanceOf(Smb2EchoResponse.class, response); } @Test @DisplayName("Should create response with correct configuration")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Tests that the getter for the underlying pipe resource returns the correct instance. */ @Test public void testGetPipe() { assertEquals(mockPipeResource, smbPipeHandle.getPipe(), "getPipe() should return the underlying pipe resource."); } /** * Tests that the getter for the input stream returns the correct stream. * @throws CIFSException if an error occurs while getting the stream.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrCloseHandleTest.java
"flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG"); // Verify that the super constructor was called with the correct handle. // This is implicitly tested by the object being created without error and // the fields set by the constructor being correct. }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.4K bytes - Viewed (0) -
src/bufio/scan_test.go
lines := []string{ "abcdefghijklmn", "opqrstuvwxyz", "", } testNoNewline(text, lines, t) } var testError = errors.New("testError") // Test the correct error is returned when the split function errors out. func TestSplitError(t *testing.T) { // Create a split function that delivers a little data, then a predictable error. numSplits := 0 const okCount = 7
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindingTest.java
assertNotNull(dcerpcBinding.getUuid(), "UUID should be set for a valid pipe endpoint."); assertEquals("4B324FC8-1670-01D3-1278-5A47BF6EE188", dcerpcBinding.getUuid().toString(), "UUID should be parsed correctly."); assertEquals(3, dcerpcBinding.getMajor(), "Major version should be parsed correctly.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED DcerpcException exception = new DcerpcException(errorCode); assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code."); } /** * Test getRootCause() method (deprecated). */ @Test void testGetRootCause() { Throwable cause = new IllegalArgumentException("Invalid argument.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// When: Get challenge byte[] key = poolSpy.getChallenge(ctx, address); // Then: Should return server key assertArrayEquals(expectedKey, key, "Should return correct server key"); verify(internal).ensureConnected(); } @Test @DisplayName("Should wrap IOException in SmbException for getChallenge") void testGetChallengeIOException() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
} @Test @DisplayName("ensureDFSResolved forwards to tree connection with locator") void ensureDFSResolvedDelegates() throws Exception { // Confirms DFS resolution is delegated with the correct locator // Act handle.ensureDFSResolved(); // Assert & interaction verify verify(treeConnection).ensureDFSResolved(resourceLoc); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
assertEquals(0, share1.type, "Share 1 raw type should be 0."); assertEquals("Remark 1", share1.remark.trim(), "Share 1 remark should be correct."); SmbShareInfo share2 = (SmbShareInfo) response.results[1]; assertEquals("IPC$", share2.getName().trim(), "Share 2 name should be correct.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test getInitialSize() returns the correct size. */ @Test void testGetInitialSize() { long expectedSize = 1024L; when(smbFileHandle.getInitialSize()).thenReturn(expectedSize); long actualSize = smbFileHandle.getInitialSize(); assertEquals(expectedSize, actualSize, "getInitialSize should return the correct initial file size.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0)