- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for Accepted (0.03 sec)
-
src/test/java/jcifs/smb/DosFileFilterTest.java
boolean result = dosFileFilter.accept(mockFile); // Then the result should be as expected if (expectedResult) { assertTrue(result, "File should be accepted"); } else { assertFalse(result, "File should not be accepted"); } } /** * Tests that the accept method returns true when the file has more attributes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java
// Test with no roles testUser.setRoleNames(new String[] {}); assertFalse(fessUserBean.hasRoles(new String[] { "admin", "user" })); // Test with single role matching one of accepted testUser.setRoleNames(new String[] { "admin" }); assertTrue(fessUserBean.hasRoles(new String[] { "admin", "user" })); assertTrue(fessUserBean.hasRoles(new String[] { "guest", "admin" }));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
when(smbFile.isDirectory()).thenReturn(true); // Act boolean result = filter.accept(smbFile); // Assert assertTrue(result, "Directory should be accepted"); verify(smbFile, times(1)).isDirectory(); verify(smbFile, never()).getName(); 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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CookieJar.kt
* * As persistence, implementations of this interface must also provide storage of cookies. Simple * implementations may store cookies in memory; sophisticated ones may use the file system or * database to hold accepted cookies. The [cookie storage model][rfc_6265_53] specifies policies for * updating and expiring cookies. * * [rfc_6265_53]: https://tools.ietf.org/html/rfc6265#section-5.3 */ interface CookieJar { /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/SmbTransportPool.java
* <code>NtlmPasswordAuthentication</code> object against the domain controller * specified by the <code>UniAddress</code> parameter. If the credentials are * not accepted, an <code>SmbAuthException</code> will be thrown. If an error * occurs an <code>SmbException</code> will be thrown. If the credentials are * valid, the method will return without throwing an exception. See the
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
assertFalse(it.hasNext(), "No more elements expected"); assertNull(it.next(), "next() returns null when exhausted in this implementation"); } @Test @DisplayName("With filter: only accepted entries are returned and filter is invoked per entry") void withFilter_acceptsSome_skipsOthers_andVerifiesInteractions() throws Exception { SmbFile parent = newParent();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
} @Test @DisplayName("Iterator with rejecting filter - finds next acceptable") void iteratorWithRejectingFilter() throws Exception { // Setup: first entry rejected, second accepted FileEntry entry1 = mock(FileEntry.class); FileEntry entry2 = mock(FileEntry.class); when(delegate.hasNext()).thenReturn(true, true, false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
// Assert assertNotNull(e1); assertNotNull(e2); assertEquals("first", e1.getName()); assertEquals(acceptedName, e2.getName(), "Should return the first name accepted by filter"); // Verify filter interactions: not called for '.' and '..', called for others verify(nameFilter, never()).accept(parent, "."); verify(nameFilter, never()).accept(parent, "..");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt
* limitations under the License. */ package okhttp3.sse import okhttp3.Response abstract class EventSourceListener { /** * Invoked when an event source has been accepted by the remote peer and may begin transmitting * events. */ open fun onOpen( eventSource: EventSource, response: Response, ) { } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:47:47 UTC 2025 - 1.7K bytes - Viewed (0)