- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 948 for isValid (0.04 sec)
-
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() { when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /** * Test isValid() when the handle is invalid. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/ConfiguredGoalSupport.java
SecDispatcher.ValidationResponse response = secDispatcher.validateConfiguration(); if (!response.isValid() || context.options().verbose().orElse(false)) { dumpResponse(context, "", response); } return response.isValid(); } protected void dumpResponse(EncryptContext context, String indent, SecDispatcher.ValidationResponse response) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
return false; } if (!context.isValid()) { throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId); } byte[] actualHash = context.getCurrentHash(); boolean isValid = MessageDigest.isEqual(actualHash, expectedHash); if (isValid) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
assertTrue(h.isValid()); // Tree id change makes it invalid when(tree.getTreeId()).thenReturn(11L); assertFalse(h.isValid()); // Connected=false makes it invalid when(tree.getTreeId()).thenReturn(10L); when(tree.isConnected()).thenReturn(false); assertFalse(h.isValid()); // Mark closed makes it invalidRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
} @Test @DisplayName("Test isValid returns false for invalid negotiation") void testIsValidReturnsFalse() { // Arrange when(negotiationResponse.isValid(cifsContext, negotiationRequest)).thenReturn(false); // Act boolean result = negotiationResponse.isValid(cifsContext, negotiationRequest); // AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
} // Ensures watch() fails fast if the underlying handle is invalid @Test @DisplayName("watch() throws when handle invalid") void watch_invalidHandle_throwsSmbException() throws Exception { when(handle.isValid()).thenReturn(false); SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final java.lang.reflect.Method method = CrawlerThread.class.getDeclaredMethod("isValid", UrlQueue.class); method.setAccessible(true); final boolean result = (boolean) method.invoke(crawlerThread, urlQueue); assertTrue(result); } /** * Test isValid method with a null URL queue. */ public void test_isValid_nullUrlQueue() throws Exception {
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
when(mockFileHandle.isValid()).thenReturn(false); assertFalse(outputStream.isOpen()); } @Test void testWriteAfterClose() throws IOException, CIFSException { // Given when(mockTreeHandle.isSMB2()).thenReturn(true); when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
internal/bucket/replication/destination.go
func (d Destination) isValidStorageClass() bool { if d.StorageClass == "" { return true } return d.StorageClass == "STANDARD" || d.StorageClass == "REDUCED_REDUNDANCY" } // IsValid - checks whether Destination is valid or not. func (d Destination) IsValid() bool { return d.Bucket != "" || !d.isValidStorageClass() } func (d Destination) String() string { return d.ARN }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/RequestHeader.java
* <p>Example usage:</p> * <pre> * RequestHeader header = new RequestHeader("Content-Type", "application/json"); * String name = header.getName(); * String value = header.getValue(); * boolean isValid = header.isValid(); * </pre> * * <p>Note: The name should not be blank and the value should not be null for the header to be considered valid.</p> * * @see java.io.Serializable */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3K bytes - Viewed (0)