- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for anyString (0.6 sec)
-
src/test/java/jcifs/DfsResolverTest.java
when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport); when(mockTransport.unwrap(any())).thenReturn(mockTransport); when(mockTransport.getDfsReferrals(any(), anyString(), anyString(), anyString(), anyInt())).thenReturn(null); assertNull(dfsResolver.getDc(mockContext, "anyDomain")); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
// Happy path: getSmbTree returns a tree and receives correct args @Test @DisplayName("getSmbTree returns tree and captures arguments") void getSmbTree_happy() { when(session.getSmbTree(anyString(), anyString())).thenReturn(tree); String share = "share"; String svc = "A:"; // service string example (e.g., DISK, IPC, or other) SmbTree result = session.getSmbTree(share, svc);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyBoolean; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.IOException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/WinErrorTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import java.util.HashSet; import java.util.Optional; import java.util.Set;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java
// win98 observed not returning nativeFileSystem /* Problems here with iSeries returning ASCII even though useUnicode = true * Fortunately we don't really need nativeFileSystem for anything. if( byteCount > bufferIndex - start ) { nativeFileSystem = readString( buffer, bufferIndex ); bufferIndex += stringWireLength( nativeFileSystem, bufferIndex ); } */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
@DisplayName("null directory is handled by implementation") void handlesNullDirectory() throws Exception { SmbFilenameFilter filter = (dir, name) -> dir == null; boolean result = filter.accept(null, "anything"); assertTrue(result, "Filter should accept when dir is null as defined"); } /** * Exception flow: filter throws SmbException and it propagates to caller. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java
// win98 observed not returning nativeFileSystem // Problems here with iSeries returning ASCII even though useUnicode = true // Fortunately we don't really need nativeFileSystem for anything. // However, we'll try to read it safely for compatibility if (this.byteCount > bufferIndex - start) { try { // Attempt to read nativeFileSystem, but don't fail if there are issuesRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.1K bytes - Viewed (0)