- Sort Score
 - Result 10 results
 - Languages All
 
Results 211 - 220 of 2,385 for When (0.02 sec)
- 
				
				
src/test/java/jcifs/SmbSessionTest.java
SmbSession unwrapResult = mock(SmbSession.class); when(mockSession.getConfig()).thenReturn(mockConfig); when(mockSession.getContext()).thenReturn(mockContext); when(mockSession.unwrap(SmbSession.class)).thenReturn(unwrapResult); doNothing().when(mockSession).close(); assertEquals(mockConfig, mockSession.getConfig());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/SmbPipeHandleTest.java
smbPipeHandle = mock(SmbPipeHandle.class); // Define behavior for the mock handle when(smbPipeHandle.getPipe()).thenReturn(mockPipeResource); when(smbPipeHandle.getInput()).thenReturn(mockInputStream); when(smbPipeHandle.getOutput()).thenReturn(mockOutputStream); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
// Test with smaller maximum buffer size when(mockConfig.getMaximumBufferSize()).thenReturn(8192); when(mockConfig.getListSize()).thenReturn(16384); request = new Smb2QueryDirectoryRequest(mockConfig); assertNotNull(request); // Test with smaller list size when(mockConfig.getMaximumBufferSize()).thenReturn(16384); when(mockConfig.getListSize()).thenReturn(8192);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/http/HandlerTest.java
assertNotNull(connection, "Connection should not be null even when jcifs is in handler path."); assertTrue(connection instanceof NtlmHttpURLConnection, "Should use cached handler and wrap it."); } @Test void testOpenConnection_NullSystemProperty_UsesDefaultHandlers() throws Exception { // This test verifies that when the system property is null, the handlerRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) - 
				
				
api/maven-api-core/src/main/java/org/apache/maven/api/package-info.java
* They are created when <dfn>resolving</dfn> an {@code ArtifactCoordinates} object. Resolving is the process * that selects a particular version and downloads the artifact into the local repository. * The {@link org.apache.maven.api.DownloadedArtifact} sub-interface is used when * an artifact has been resolved and the {@link org.apache.maven.api.ProducedArtifact} sub-interface when * an artifact is being produced by a project.</p>
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Mar 05 14:29:21 UTC 2025 - 7.7K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/smb/SpnegoContextTest.java
SSPContext mechContext; private ASN1ObjectIdentifier[] mechs; @BeforeEach void setup() { // Default: do not enforce or disable SPNEGO integrity when(this.config.isEnforceSpnegoIntegrity()).thenReturn(false); when(this.config.isDisableSpnegoIntegrity()).thenReturn(false); this.mechs = new ASN1ObjectIdentifier[] { new ASN1ObjectIdentifier("1.2.3.4") }; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
assertEquals((byte) 0xFF, buf[1], "AndX command should be 0xFF when no chaining"); assertEquals((byte) 0x00, buf[2], "Reserved byte must be 0"); assertEquals((byte) 0xDE, buf[3], "Sentinel low offset when no chaining"); assertEquals((byte) 0xDE, buf[4], "Sentinel high offset when no chaining"); assertNull(block.andx, "andx should be cleared when not chaining"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/smb/BufferCacheImplTest.java
@Test @DisplayName("Constructor(Configuration) uses cache size and maximum buffer size from config") void constructorUsesConfigurationAndAllocatesWithConfiguredSize() { when(cfg.getBufferCacheSize()).thenReturn(2); when(cfg.getMaximumBufferSize()).thenReturn(5); BufferCacheImpl impl = new BufferCacheImpl(cfg); // Verify interactions happen exactly once during constructionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.5K bytes - Viewed (0) - 
				
				
tests/update_has_many_test.go
user := *GetUser("update-has-many", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 User DB.Preload("Pets").Find(&user2, "id = ?", user.ID) CheckUser(t, user2, user)Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 2K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/http/NtlmSspTest.java
lenient().when(mockCifsContext.getConfig()).thenReturn(mockConfig); lenient().when(mockConfig.getDefaultDomain()).thenReturn("DOMAIN"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); // Mock NameServiceClient for Type1Message test lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (1)