- Sort Score
- Result 10 results
- Languages All
Results 1211 - 1220 of 2,681 for Then (0.02 sec)
-
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
} @Test void testWrapMethodThrowsDcerpcException() throws DcerpcException { // Configure the mock to throw DcerpcException when wrap is called doThrow(new DcerpcException("Test wrap exception")).when(dcerpcSecurityProvider).wrap(mockNdrBuffer); // Assert that calling wrap throws DcerpcExceptionRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
* implementation. */ @Test @DisplayName("verify getters return stubbed values") void testGettersHappyPath() { when(mockAllocInfo.getCapacity()).thenReturn(1000L); when(mockAllocInfo.getFree()).thenReturn(400L); assertEquals(1000L, mockAllocInfo.getCapacity(), "capacity should match stubbed value");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
} // Test channel selection with mock request when no channels available ServerMessageBlock2Request mockRequest = mock(ServerMessageBlock2Request.class); when(mockRequest.getTreeId()).thenReturn(123); // Should throw NoAvailableChannelException when no healthy channelsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
tests/delete_test.go
if err := DB.Create(&users).Error; err != nil { t.Errorf("errors happened when create: %v", err) } for _, user := range users { if user.ID == 0 { t.Fatalf("user's primary key should has value after create, got : %v", user.ID) } } if res := DB.Delete(&users[1]); res.Error != nil || res.RowsAffected != 1 { t.Errorf("errors happened when delete: %v, affected: %v", res.Error, res.RowsAffected) } var result User
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 9.5K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer.go
"io" "sync" "unsafe" ) var ( // ErrTooMuchDataToWrite is returned when the data to write is more than the buffer size. ErrTooMuchDataToWrite = errors.New("too much data to write") // ErrIsFull is returned when the buffer is full and not blocking. ErrIsFull = errors.New("ringbuffer is full") // ErrIsEmpty is returned when the buffer is empty and not blocking. ErrIsEmpty = errors.New("ringbuffer is empty")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 13.3K bytes - Viewed (0) -
src/test/java/jcifs/SmbConnectionTest.java
assertTrue(config.isUseBatching(), "Batching should be enabled"); // When both are enabled, batch limits should be available int limit = config.getBatchLimit("TreeConnectAndX.QueryInformation"); assertTrue(limit >= 0, "Batch limit should be non-negative when Unicode and batching enabled"); } /** * Test configuration when batching is disabled */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
tests/non_std_test.go
} // When changing a field with a default value, the change must occur animal.Name = "amazing horse" DB.Save(&animal) DB.First(&animal, animal.Counter) if animal.Name != "amazing horse" { t.Errorf("Update a filed with a default value should occur. But got %v\n", animal.Name) } // When changing a field with a default value with blank value animal.Name = ""
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
@BeforeEach void setUp() { when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.isUseMultiChannel()).thenReturn(true); when(mockConfig.getMaxChannels()).thenReturn(4); when(mockConfig.getChannelBindingPolicy()).thenReturn(1); // preferred when(mockConfig.getLoadBalancingStrategy()).thenReturn("adaptive"); when(mockConfig.getChannelHealthCheckInterval()).thenReturn(10);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/UniAddressTest.java
// Arrange NbtAddress nbtMock = mock(NbtAddress.class); when(nbtMock.nextCalledName()).thenReturn("NEXT"); UniAddress ua = new UniAddress(nbtMock); // Act String next = ua.nextCalledName(); // Assert assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called"); } @TestRegistered: 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/smb/DirFileEntryEnumIteratorBaseTest.java
void nameFilterAccepts(String acceptedName) throws Exception { // Arrange stubAcquireReturnsSelf(); when(nameFilter.accept(any(), any())).thenReturn(false); when(nameFilter.accept(parent, acceptedName)).thenReturn(true); FileEntry initial = entry("first");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0)