- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 484 for accepts (0.06 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K 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 & Assert
Registered: Sun Sep 07 00:10:21 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 one
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/smb/ShareEnumIteratorTest.java
// Filter accepts names starting with "keep" when(filter.accept(any())).thenAnswer(inv -> { SmbResource res = inv.getArgument(0); return res.getName().startsWith("keep"); }); ShareEnumIterator it = new ShareEnumIterator(parent, entries.iterator(), filter); // Returns only accepted resources assertTrue(it.hasNext());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionError.java
* `public final Error getCause()`.) */ /** * Creates a new instance with {@code null} as its detail message and no cause. * * @deprecated Prefer {@linkplain ExecutionError(Error)} a constructor that accepts a cause: Users * of this class typically expect for instances to have a non-null cause. At the moment, you * can <i>usually</i> still preserve behavior by passing an explicit {@code null} cause. Note,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/UncheckedExecutionException.java
*/ /** * Creates a new instance with {@code null} as its detail message and no cause. * * @deprecated Prefer {@linkplain UncheckedExecutionException(Throwable)} a constructor that * accepts a cause: Users of this class typically expect for instances to have a non-null * cause. At the moment, you can <i>usually</i> still preserve behavior by passing an explicit
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
@Test @DisplayName("Constructor accepts null challenge") void testConstructorAcceptsNullChallenge() { UniAddress dc = mock(UniAddress.class); NtlmChallenge nc = new NtlmChallenge(null, dc); assertNull(nc.challenge); assertSame(dc, nc.dc); } @Test @DisplayName("Constructor accepts null dc") void testConstructorAcceptsNullDc() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java
final class Platform { static boolean isInstanceOfThrowableClass(Throwable t, Class<? extends Throwable> expectedClass) { /* * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class * under GWT. */ return true; } static void restoreInterruptIfIsInterruptedException(Throwable t) {} static void interruptCurrentThread() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 27 16:15:49 UTC 2025 - 2K bytes - Viewed (0)