- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,364 for accepts (0.04 sec)
-
src/test/java/jcifs/smb/SmbFileFilterTest.java
verify(smbFile, times(1)).length(); // positive size -> accept reset(smbFile); when(smbFile.length()).thenReturn(42L); assertTrue(filter.accept(smbFile), "Positive size should be accepted"); verify(smbFile, times(1)).length(); verifyNoMoreInteractions(smbFile); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
// Accept files in /share/folder/ that are text files return path.equals("/share/folder/") && name != null && name.endsWith(".txt"); }; // Act & Assert: test with different file names assertTrue(filter.accept(mockDir, "document.txt"), "Should accept .txt files in the correct path"); assertFalse(filter.accept(mockDir, "image.png"), "Should reject non-.txt files");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java
assertEquals(name, request.getRemoteUser()); verify(mockPrincipal, times(1)).getName(); } @Test @DisplayName("constructor accepts null principal") void testConstructorWithNullPrincipal(@Mock HttpServletRequest mockRequest) { // Constructor accepts null principal without throwing exception NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/MavenEncCling.java
/** * ClassWorld Launcher "enhanced" entry point: returning exitCode and accepts Class World. */ public static int main(String[] args, ClassWorld world) throws IOException { return new MavenEncCling(world).run(args, null, null, null, false); } /** * ClassWorld Launcher "embedded" entry point: returning exitCode and accepts Class World and streams. */ public static int main(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/MavenShellCling.java
/** * ClassWorld Launcher "enhanced" entry point: returning exitCode and accepts Class World. */ public static int main(String[] args, ClassWorld world) throws IOException { return new MavenShellCling(world).run(args, null, null, null, false); } /** * ClassWorld Launcher "embedded" entry point: returning exitCode and accepts Class World and streams. */ public static int main(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Act & Assert assertDoesNotThrow(() -> new MsrpcSamrConnect2(null, 0, ph)); } @Test @DisplayName("should accept negative access mask values") void testNegativeAccessMaskAccepted() { // Arrange SamrPolicyHandle ph = createMockPolicyHandle(); // Act & AssertRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java
// First call: reject, Second call: accept when(filter.accept(any(SmbResource.class))).thenReturn(false, true); NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, filter); // Act assertTrue(itr.hasNext()); SmbResource r = itr.next(); // Assert: filter was invoked twice and we got the accepted oneRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/MavenCling.java
/** * ClassWorld Launcher "enhanced" entry point: returning exitCode and accepts Class World. */ public static int main(String[] args, ClassWorld world) throws IOException { return new MavenCling(world).run(args, null, null, null, false); } /** * ClassWorld Launcher "embedded" entry point: returning exitCode and accepts Class World and streams. */ public static int main(Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
md4.update(Strings.getUNIBytes(password)); return md4.digest(); } /** * Generates the NT password hash for the given password. * This version accepts char[] for better security. * * @param password the password to hash as char array * @return nt password hash */ public static byte[] getNTHash(final char[] password) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
tests/test_openapi_schema_type.py
[ "array", ["string", "null"], None, ], ) def test_allowed_schema_type( type_value: Optional[Union[SchemaType, list[SchemaType]]], ) -> None: """Test that Schema accepts SchemaType, List[SchemaType] and None for type field.""" schema = Schema(type=type_value) assert schema.type == type_value def test_invalid_type_value() -> None:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 730 bytes - Viewed (0)