- Sort Score
- Result 10 results
- Languages All
Results 1131 - 1140 of 2,681 for Then (0.04 sec)
-
src/test/java/jcifs/util/HMACT64Test.java
try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) { mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5); byte[] innerDigest = "inner_digest".getBytes(); byte[] finalDigest = "final_digest".getBytes(); when(mockMd5.digest()).thenReturn(innerDigest); when(mockMd5.digest(any(byte[].class))).thenReturn(finalDigest);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
CHANGELOG.md
use it to compose a cache URL from the query body. * New: Publish events when calls must wait to execute. `EventListener.dispatcherQueueStart()` is invoked when a call starts waiting, and `dispatcherQueueEnd()` is invoked when it's done. * New: `Request.toCurl()` returns a copy-pasteable [curl] command consistent with Chrome’s and Firefox’s ‘copy as cURL’ features.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 05 16:02:59 UTC 2025 - 36.2K bytes - Viewed (2) -
impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultProjectManagerTest.java
when(artifact.getGroupId()).thenReturn("myGroup"); when(artifact.getArtifactId()).thenReturn("myArtifact"); when(artifact.getBaseVersion()).thenReturn(versionParser.parseVersion("1.0-SNAPSHOT")); projectManager.attachArtifact(project, artifact, artifactPath); // Verify that an exception is thrown when the artifactId differs
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Dec 17 16:17:01 UTC 2025 - 5.2K bytes - Viewed (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/logging/Log.java
* The error's stacktrace will be output when this error level is enabled. * * @param content * @param error */ void debug(CharSequence content, Throwable error); /** * Send an exception to the user in the <b>debug</b> error level.<br> * The stack trace for this exception will be output when this error level is enabled. * * @param error */
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilterTest.java
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; class ExclusionArtifactFilterTest { private Artifact artifact; private Artifact artifact2; @BeforeEach void setup() { artifact = mock(Artifact.class); when(artifact.getGroupId()).thenReturn("org.apache.maven"); when(artifact.getArtifactId()).thenReturn("maven-core");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbFile.tree = smbTree; smbFile.fid = 1; smbFile.tree_num = 1; when(smbFile.isFile()).thenReturn(true); when(smbFile.getUncPath()).thenReturn("\\\\server\\share\\file.txt"); when(smbFile.isOpen()).thenReturn(true); // Mock the open method to do nothing doNothing().when(smbFile).open(anyInt(), anyInt(), anyInt(), anyInt());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(false); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(tree.hasCapability(SmbConstants.CAP_NT_SMBS)).thenReturn(true); when(handle.getFid()).thenReturn(fid);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.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.model()).thenReturn(Optional.empty());Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 12.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final Rule rule = mock(Rule.class); final ResponseProcessor responseProcessor = mock(ResponseProcessor.class); when(ruleManager.getRule(responseData)).thenReturn(rule); when(rule.getRuleId()).thenReturn("test-rule"); when(rule.getResponseProcessor()).thenReturn(responseProcessor); // Use reflection to access protected method final java.lang.reflect.Method method =Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java
TestBean bean2 = new TestBean(); PlexusConfiguration config = new XmlPlexusConfiguration("test"); config.setValue("value1"); when(evaluator.evaluate("value1")).thenReturn("value1"); when(evaluator.evaluate("value2")).thenReturn("value2"); java.lang.reflect.Field field = TestBean.class.getDeclaredField("directField"); // First access
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Nov 12 14:59:46 UTC 2025 - 8.7K bytes - Viewed (0)