- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 2,390 for when (0.02 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
when(mockDelegate.getSIDResolver()).thenReturn(mockSidResolver); assertEquals(mockSidResolver, cifsContextWrapper.getSIDResolver()); verify(mockDelegate).getSIDResolver(); } @Test void testHasDefaultCredentials_True() { // Test hasDefaultCredentials() method when true when(mockDelegate.hasDefaultCredentials()).thenReturn(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
void setUp() { mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLeaseTimeout()).thenReturn(30000); when(mockConfig.getMaxLeases()).thenReturn(1000); when(mockConfig.getLeaseBreakTimeout()).thenReturn(60); leaseManager = new LeaseManager(mockContext); } @AfterEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
void testInt16Operations() { // Given short value = 0x1234; byte[] buffer = new byte[2]; // When - encode little endian Encdec.enc_uint16le(value, buffer, 0); short decoded = (short) Encdec.dec_uint16le(buffer, 0); // Then assertEquals(value, decoded); assertEquals(0x34, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096); // Act return new SmbPipeOutputStream(handle, tree); } @ParameterizedTestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java
} /** * Registers a callback to be executed when the computation is complete. * @param consumer The callback. * @return The promise. */ public Promise then(final Consumer<RESPONSE> consumer) { return promise.then(consumer); } /** * Registers a callback to be executed when the computation fails. * @param consumer The callback.Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect2Test.java
} @Test @DisplayName("Should construct with correct parameters") void constructorShouldInitializeFieldsCorrectly() { // When MsrpcSamrConnect2 msrpcSamrConnect2 = new MsrpcSamrConnect2(testServer, testAccess, mockPolicyHandle); // Then assertNotNull(msrpcSamrConnect2, "MsrpcSamrConnect2 should be created successfully"); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
tests/update_has_one_test.go
user := *GetUser("update-has-one", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Account = Account{Number: "account-has-one-association"} if err := DB.Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user2 User DB.Preload("Account").Find(&user2, "id = ?", user.ID) CheckUser(t, user2, user)Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
message.opnumValue = 5; when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24); lenient().doNothing().when(mockBuffer).advance(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_short(anyInt()); lenient().doNothing().when(mockBuffer).enc_ndr_small(anyInt());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.3K bytes - Viewed (0)