- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 2,385 for When (0.03 sec)
-
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
@Test @DisplayName("Should create RuntimeCIFSException with default constructor") void testDefaultConstructor() { // When RuntimeCIFSException exception = new RuntimeCIFSException(); // Then assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause()); assertTrue(exception instanceof RuntimeException);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal); Mockito.when(mockTransport.acquire()).thenReturn(mockTransport); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
// Arrange when(mockCtx.getSigningKey()).thenReturn(new byte[] { 7 }); when(mockCtx.isEstablished()).thenReturn(true); when(mockCtx.initSecContext(any(byte[].class), anyInt(), anyInt())).thenReturn(new byte[] { 9 }); when(mockCtx.getNetbiosName()).thenReturn("NB"); when(mockCtx.isSupported(any())).thenReturn(true); when(mockCtx.isPreferredMech(any())).thenReturn(false);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
doc/godebug.md
behavior from Go 1.23 when `dataindependenttiming` is unset. Using `dataindependenttiming=1` enables the DIT mode for the entire Go program. When enabled, DIT will be enabled when calling into C from Go. When enabled, calling into Go code from C will enable DIT, and disable it before returning to C if it was not enabled when Go code was entered.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jul 08 18:30:38 UTC 2025 - 22.9K bytes - Viewed (0) -
tests/associations_many2many_test.go
t.Fatalf("should raise error when create users without languages reference") } if err := DB.Create(&user.Languages).Error; err != nil { t.Fatalf("no error should happen when create languages, but got %v", err) } if err := DB.Omit("Languages.*").Create(&user).Error; err != nil { t.Fatalf("no error should happen when create user when languages exists, but got %v", err) } // Find
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Jun 10 13:05:19 UTC 2023 - 13.2K bytes - Viewed (0) -
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/internal/smb2/create/Smb2CloseResponseTest.java
@Test @DisplayName("Constructor should initialize with config, fileId and fileName") void testConstructorWithAllParameters() { // When Smb2CloseResponse closeResponse = new Smb2CloseResponse(mockConfig, testFileId, testFileName); // Then assertNotNull(closeResponse); assertArrayEquals(testFileId, closeResponse.getFileId());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K 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/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/netbios/LmhostsTest.java
mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); } @Test void testGetByNameWithNullLmHostsFile() { // Test when lmhosts file is not configured when(mockConfig.getLmHostsFileName()).thenReturn(null); NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0)