- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 2,810 for when (0.02 sec)
-
src/test/java/jcifs/util/transport/RequestTest.java
// Test case for isCancel method when it returns true when(mockRequest.isCancel()).thenReturn(true); assertTrue(mockRequest.isCancel(), "isCancel should return true when mocked to do so."); verify(mockRequest, times(1)).isCancel(); } @Test void testIsCancelFalse() { // Test case for isCancel method when it returns false when(mockRequest.isCancel()).thenReturn(false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_HIDDEN);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
private Configuration mockConfig; private Smb2QueryDirectoryResponse response; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockConfig.isUseUnicode()).thenReturn(true); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); } @Test @DisplayName("Test constructor initializes with config and expectInfoClass") void testConstructor() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.getName()).thenReturn("subfolder"); when(mockFile2.length()).thenReturn(0L); when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.isDirectory()).thenReturn(true); when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategyTest.java
} @Test @DisplayName("should be applicable when --all option is specified") void shouldBeApplicableWhenAllOptionSpecified() { UpgradeOptions options = mock(UpgradeOptions.class); when(options.all()).thenReturn(Optional.of(true)); when(options.plugins()).thenReturn(Optional.empty());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 27.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
architecture/standards/0006-use-of-provider-apis-in-gradle.md
# ADR-0006 - Use of Provider APIs in Gradle ## Date 2024-06-21 ## Context
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Oct 15 20:00:57 UTC 2024 - 10K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
// Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer); } @Test void testGetSyntax() { String syntax = srvsvc.getSyntax();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0)