- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,298 for Chen (0.02 sec)
-
src/test/java/jcifs/context/BaseContextTest.java
when(configWithCreds.getDefaultUsername()).thenReturn("testuser"); when(configWithCreds.getDefaultPassword()).thenReturn("testpass"); when(configWithCreds.getDefaultDomain()).thenReturn("TESTDOMAIN"); when(configWithCreds.getBufferCacheSize()).thenReturn(16); when(configWithCreds.getMaximumBufferSize()).thenReturn(65536); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
// When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceeded assertThrows(ArrayIndexOutOfBoundsException.class, () -> { Strings.findUNITermination(bufferWithoutTermination, 0, bufferWithoutTermination.length); }, "Should throw ArrayIndexOutOfBoundsException when termination not found within bounds"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
} @Test @DisplayName("unwrap method should return correct type when supported") void testUnwrapMethodContract() throws Exception { // Given when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress); // When & Then Address unwrapped = mockAddress.unwrap(Address.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/https/HandlerTest.java
void testConstructorWithNullContext() { // When Handler testHandler = new Handler(null); // Then assertNotNull(testHandler); } @Test @DisplayName("Should extend jcifs.http.Handler") void testInheritance() { // Then assertTrue(handler instanceof jcifs.http.Handler);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
} @Test @DisplayName("Should return null for getService") void testGetService() { // When String service = response.getService(); // Then assertNull(service); } @Test @DisplayName("Should prepare next request correctly when received") void testPrepareWhenReceived() throws Exception { // Given
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/ntlmssp/Type3MessageTest.java
lenient().when(mockConfig.getDefaultDomain()).thenReturn("TESTDOMAIN"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8"); lenient().when(mockConfig.getRandom()).thenReturn(mockRandom); lenient().when(mockConfig.getLanManCompatibility()).thenReturn(level);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
doNothing().when(mockBufferCache).releaseBuffer(buffer); // When & Then assertDoesNotThrow(() -> { mockBufferCache.releaseBuffer(buffer); }, "releaseBuffer should handle valid buffers"); } @Test @DisplayName("getBuffer should return buffers for use") void testGetBufferBasicUsage() { // When byte[] buffer1 = testCache.getBuffer();
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/dcerpc/DcerpcHandleTest.java
// When/Then: Should throw DcerpcException for invalid URLs assertThrows(DcerpcException.class, () -> DcerpcHandle.parseBinding(url)); } @Test @DisplayName("Should handle binding URLs without endpoints correctly") void testParseBindingWithoutEndpoint() { // When/Then: URLs without proper endpoints should fail
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
} @Test @DisplayName("Should create exception with error code and message") void testBasicCreation() { // When exception = new SmbOperationException(SmbOperationException.ErrorCode.FILE_NOT_FOUND, "test.txt"); // Then assertNotNull(exception); assertEquals(SmbOperationException.ErrorCode.FILE_NOT_FOUND, exception.getErrorCode());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// When & Then - should handle gracefully assertThrows(Exception.class, () -> { response.readBytesWireFormat(buffer, offset); }); } @Test @DisplayName("Should verify NotifyResponse interface implementation") void testNotifyResponseInterface() { // Then assertTrue(response instanceof NotifyResponse);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0)