- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 157 for thenReturn (0.04 sec)
-
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(pipe.getPipeType()).thenReturn(SmbPipeResource.PIPE_TYPE_RDWR); when(pipe.getUncPath()).thenReturn("\\\\pipe\\\\my-pipe"); // Setup tree with configuration when(tree.getConfig()).thenReturn(config); when(tree.getSendBufferSize()).thenReturn(65536); when(config.getPid()).thenReturn(12345); when(config.getSendBufferSize()).thenReturn(65536);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java
toolchainModels.add(ToolchainModel.newBuilder().type("unknown").build()); when(session.getRequest()).thenReturn(executionRequest); Session sessionv4 = mock(Session.class); when(session.getSession()).thenReturn(sessionv4); when(sessionv4.getToolchains()).thenReturn(toolchainModels); List<Toolchain> toolchains = toolchainManager.getToolchains(session, "unknown", null);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(handle.getPipe()).thenReturn(pipe); // init(th) behavior inside SmbFileInputStream constructor when(tree.isSMB2()).thenReturn(smb2); when(tree.getReceiveBufferSize()).thenReturn(4096); when(tree.getMaximumBufferSize()).thenReturn(65535); when(tree.hasCapability(anyInt())).thenReturn(false); return new SmbPipeInputStream(handle, tree); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
when(gssContext.getCredDelegState()).thenReturn(false); when(gssContext.getMutualAuthState()).thenReturn(false); when(gssContext.getReplayDetState()).thenReturn(false); when(gssContext.getSequenceDetState()).thenReturn(false); when(gssContext.getAnonymityState()).thenReturn(false); when(gssContext.getConfState()).thenReturn(false); when(gssContext.getIntegState()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
lenient().when(request.getSession(false)).thenReturn(session); lenient().when(request.getSession(true)).thenReturn(session); // Setup default session attribute behavior lenient().when(session.getAttribute(anyString())).thenReturn(null); // Setup SmbFile mock lenient().when(smbFile.getLocator()).thenReturn(locator);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
when(mockFile1.getName()).thenReturn("file1.txt"); when(mockFile1.length()).thenReturn(1024L); when(mockFile1.lastModified()).thenReturn(1000L); when(mockFile1.isDirectory()).thenReturn(false); when(mockFile1.getAttributes()).thenReturn(0x20); when(mockFile1.createTime()).thenReturn(500L); when(mockFile1.lastAccess()).thenReturn(800L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(ctx.getConfig()).thenReturn(config); when(ctx.getNameServiceClient()).thenReturn(nameSvc); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getTransportPool()).thenReturn(pool); // Default config values when(config.getLocalAddr()).thenReturn(null); when(config.getLocalPort()).thenReturn(0); when(config.getSessionLimit()).thenReturn(10);
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/internal/smb2/nego/Smb2NegotiateRequestTest.java
when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockConfig.isEncryptionEnabled()).thenReturn(true); when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB202); when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311); when(mockConfig.getMachineId()).thenReturn(testMachineId); when(mockConfig.getRandom()).thenReturn(mockRandom);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
SmbResourceLocator context2 = mock(SmbResourceLocator.class); when(context2.getShare()).thenReturn("share"); when(context2.getDfsReferral()).thenReturn(null); when(context2.getUNCPath()).thenReturn("\\"); when(context2.getURLPath()).thenReturn("/share/"); when(context2.getServer()).thenReturn("server"); base2.resolveInContext(context2, "sub/child");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0)