- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 878 for Verify (0.04 sec)
-
src/test/java/jcifs/pac/PacUnicodeStringTest.java
short maxLength = 20; int pointer = 100; PacUnicodeString pacString = new PacUnicodeString(length, maxLength, pointer); // Verify that the object was created assertNotNull(pacString, "The PacUnicodeString object should not be null."); // Verify that the getters return the correct values assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java
// Execute final SsoMessageException exception = new SsoMessageException(messageCode, message, cause); // Verify assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); assertEquals(messageCode, exception.getMessageCode()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
} @Test void constructor_shouldInitializeFields() throws Exception { // Verify configuration is set Field configField = NameServicePacket.class.getDeclaredField("config"); configField.setAccessible(true); assertSame(mockConfig, configField.get(response)); // Verify queryAddress is set Field queryAddressField = NodeStatusResponse.class.getDeclaredField("queryAddress");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
try (SamrPolicyHandle handle = new SamrPolicyHandle(mockHandle, server, access)) { assertNotNull(handle); // Verify that sendrecv was called with MsrpcSamrConnect4 verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class)); verify(mockHandle, never()).sendrecv(any(MsrpcSamrConnect2.class)); } } @Test void testConstructor_NullServer() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
boolean inUse = pool.close(); // Then: Should report in-use and call disconnect on all assertTrue(inUse, "Should report connections in use"); verify(pooledSpy).disconnect(false, false); verify(nonPooledSpy).disconnect(false, false); } @Test @DisplayName("Should get challenge from server") void testGetChallenge() 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
// Verify constructor invoked acquire once verify(treeConnection, times(1)).acquire(); // getConfig delegates when(treeConnection.getConfig()).thenReturn(config); assertSame(config, handle.getConfig()); verify(treeConnection).getConfig(); // isConnected delegates
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/SmbWatchHandleTest.java
// Execute List<FileNotifyInformation> result = watchHandle.watch(); // Verify assertNotNull(result); assertEquals(3, result.size()); assertEquals(fileNotifyInfo1, result.get(0)); assertEquals(fileNotifyInfo2, result.get(1)); assertEquals(fileNotifyInfo3, result.get(2)); verify(watchHandle, times(1)).watch(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java
FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName); // Verify size (14 bytes header + 0 bytes for empty name) assertEquals(14, request.size()); // Test encoding byte[] buffer = new byte[50]; int bytesEncoded = request.encode(buffer, 0); // Verify assertEquals(14, bytesEncoded);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Arrays; import java.util.concurrent.TimeUnit; import org.junit.jupiter.api.BeforeEach;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
// Then - verify the body was written correctly byte[] pathBytes = TEST_PATH.getBytes(StandardCharsets.UTF_16LE); // Verify structure size (9) assertEquals(9, SMBUtil.readInt2(buffer, bodyOffset)); // Verify tree flags (0) assertEquals(0, SMBUtil.readInt2(buffer, bodyOffset + 2)); // Verify path offset (points to after the 8-byte structure)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)