- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 470 for Valid (0.03 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// When boolean valid = response.isValid(mockContext, mockRequest); // Then assertTrue(valid); assertEquals(DialectVersion.SMB311, response.getSelectedDialect()); } @Test @DisplayName("Should fail validation when not received") void testIsValidNotReceived() { // When boolean valid = response.isValid(mockContext, mockRequest);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
when(mockConfig.getPid()).thenReturn(12345); response = new SmbComSetInformationResponse(mockConfig); } @Test @DisplayName("Constructor accepts valid config") void constructorValid() { assertDoesNotThrow(() -> new SmbComSetInformationResponse(mockConfig)); } @Nested @DisplayName("writeParameterWordsWireFormat tests")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
Address unwrapped = mockAddress.unwrap(Address.class); assertSame(mockAddress, unwrapped, "Should return same instance for supported type"); } @Test @DisplayName("getHostName should return valid hostname or address") void testGetHostNameContract() { // Given String expectedHostName = "server.example.com"; when(mockAddress.getHostName()).thenReturn(expectedHostName); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java
public boolean hasAccess(RdmaAccess access) { return accessFlags.contains(access); } /** * Check if memory region is still valid * * @return true if valid, false if invalidated */ public boolean isValid() { return valid; } /** * Invalidate this memory region * * After invalidation, the region cannot be used for RDMA operations.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 4.3K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/RequestHeader.java
*/ public void setValue(final String value) { this.value = value; } /** * Checks if the request header is valid. * A header is considered valid if its name is not blank and its value is not null. * @return true if the header is valid, false otherwise. */ public boolean isValid() { if (StringUtil.isBlank(name) || value == null) { return false; }
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
/** * Validation method used by {@code from} to ensure that the domain name is syntactically valid * according to RFC 1035. * * @return Is the domain name syntactically valid? */ private static boolean validateSyntax(List<String> parts) { int lastIndex = parts.size() - 1; // Validate the last part specially, as it has different syntax rules. if (!validatePart(parts.get(lastIndex), true)) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Test excessive maxTransactSize (> 16MB) SMBUtil.writeInt4(20 * 1024 * 1024, buffer, 28); // 20MB SMBUtil.writeInt4(1024 * 1024, buffer, 32); // 1MB read size - valid SMBUtil.writeInt4(1024 * 1024, buffer, 36); // 1MB write size - valid SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> { response.readBytesWireFormat(buffer, 0); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
// Act: first valid next should be the second element assertTrue(itr.hasNext()); SmbResource r = itr.next(); // Assert: the invalid name was skipped, valid one returned assertNotNull(r); assertTrue(r.getName().startsWith("OKSERVER"), "Expected valid entry to be adapted"); assertFalse(itr.hasNext()); } @Test
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/pac/PacTest.java
try (MockedStatic<PacMac> pacMacMock = mockStatic(PacMac.class)) { // Mock the calculateMac method to return a valid checksum byte[] mockChecksum = new byte[16]; pacMacMock.when(() -> PacMac.calculateMac(anyInt(), any(), any())).thenReturn(mockChecksum); // Create a minimal valid PAC structure ByteArrayOutputStream baos = new ByteArrayOutputStream();
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/pac/kerberos/KerberosApRequestTest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import jcifs.pac.PACDecodingException; class KerberosApRequestTest { // Helper: build a minimal, valid-looking ASN.1 AP-REQ sequence with tags 0/1/2 private ASN1Sequence buildMinimalApReqSeq(byte apOptions) { ASN1EncodableVector v = new ASN1EncodableVector(); // pvno [0] INTEGER 5
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0)