- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 773 for When (0.88 sec)
-
src/main/java/org/codelibs/fess/app/web/admin/general/EditForm.java
public Integer crawlingThreadCount; /** * Enable or disable search query logging. * When enabled, user search queries are logged for analysis. */ @Size(max = 10) public String searchLog; /** * Enable or disable user information tracking. * When enabled, user information is stored and tracked. */ @Size(max = 10) public String userInfo; /**Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 13 02:21:17 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
when(mockNbtAddress.firstCalledName()).thenReturn("NBT_NAME"); assertEquals("NBT_NAME", uniAddress.firstCalledName()); verify(mockNbtAddress, times(1)).firstCalledName(); } @Test void shouldReturnSmbServerNameWhenInetAddressIsDotQuadIP() throws UnknownHostException { when(mockInetAddress.getHostName()).thenReturn("192.168.1.100");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
void testSetFileIdInCloseRequest() { // Given Smb2CloseRequest request = new Smb2CloseRequest(mockConfig, emptyFileId); // When request.setFileId(testFileId); // Then - verify through internal state (would need getter or reflection in real scenario) // Since we can't directly verify the internal state, we create a new request to test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
private void setupParentForUrlCreation() throws CIFSException { // Only set up parent mocks when they're actually needed for URL creation when(parent.getContext()).thenReturn(this.ctx); when(parent.getLocator()).thenReturn(parentLocator); // Make the parent appear as a workgroup to use the simpler URL code-path when(parentLocator.isWorkgroup()).thenReturn(true); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
int result = 0; when(mockBuffer.dec_ndr_short()).thenReturn(4096, 4096, 10, result, 0); when(mockBuffer.dec_ndr_long()).thenReturn(12345); when(mockBuffer.dec_ndr_small()).thenReturn(1); lenient().doNothing().when(mockBuffer).advance(anyInt()); lenient().when(mockBuffer.align(anyInt())).thenReturn(0); // When bind.decode_out(mockBuffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/DecodableTest.java
// Given byte[] buffer = new byte[10]; int bufferIndex = 0; int len = 10; when(mockDecodable.decode(buffer, bufferIndex, len)).thenReturn(10); // When int decodedLength = mockDecodable.decode(buffer, bufferIndex, len); // Then assertEquals(10, decodedLength); verify(mockDecodable).decode(buffer, bufferIndex, len); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.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 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
samr.SamrSamEntry entry = new samr.SamrSamEntry(); when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // idx, _name_bufferp when(mockNdrBuffer.dec_ndr_short()).thenReturn(4, 6); // length, maximum_length when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers // When/Then: Should throw exception
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS); SmbResourceLocator locator = mock(SmbResourceLocator.class); when(parent.getLocator()).thenReturn(locator); when(locator.getURL()).thenReturn(new URL("file:/")); when(locator.getAddress()).thenThrow(new CIFSException("no master", new UnknownHostException("MB")));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient); when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost); when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME); when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN); when(mockConfig.isUseUnicode()).thenReturn(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0)