- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 722 for WHEN (1.21 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java
// Given byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 }; SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config); // When int result = instance.readParameterWordsWireFormat(buffer, 0); // Then assertEquals(8, result); assertEquals(0xffffL, instance.getCount()); } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal); Mockito.when(mockTransport.acquire()).thenReturn(mockTransport); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java
* It is similar to a Promise in JavaScript. * It allows you to register callbacks that will be executed when the computation is complete, * either successfully (resolve) or with an error (reject). * </p> * * <p> * The Deferred class has a Promise inner class that allows you to register callbacks * to be executed when the computation is complete. * The Promise class has then and error methods that allow you to register callbacks
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
*/ @Test void testDecode() throws NdrException { // When ndrObject.decode(mockBuffer); // Then // Verify that our mock buffer had the expected method called. verify(mockBuffer).dec_ndr_long(); } /** * Test case for the encode method when it throws an NdrException. * Verifies that the exception is correctly propagated. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbConnectionTest.java
assertTrue(config.isUseBatching(), "Batching should be enabled"); // When both are enabled, batch limits should be available int limit = config.getBatchLimit("TreeConnectAndX.QueryInformation"); assertTrue(limit >= 0, "Batch limit should be non-negative when Unicode and batching enabled"); } /** * Test configuration when batching is disabled */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
void nameFilterAccepts(String acceptedName) throws Exception { // Arrange stubAcquireReturnsSelf(); when(nameFilter.accept(any(), any())).thenReturn(false); when(nameFilter.accept(parent, acceptedName)).thenReturn(true); FileEntry initial = entry("first");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
// Assert assertEquals(msg, ex.getMessage(), "Constructor should preserve the provided message (including null)"); assertNull(ex.getCause(), "No cause expected when only message is provided"); // toString behavior mirrors Throwable: includes message when not null String ts = ex.toString(); assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name"); if (msg != null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
assertTrue(resp.isLoggedInAsGuest(), "Guest/anonymous should be detected"); // prepare should propagate session id when received CIFSContext mockCtx = mock(CIFSContext.class); when(mockCtx.getConfig()).thenReturn(mock(Configuration.class)); Smb2SessionSetupRequest nextReq = new Smb2SessionSetupRequest(mockCtx, 0, 0, 0L, null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
@BeforeEach void setUp() { exception = null; } @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);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0)