- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 201 for acceptPK (0.66 sec)
-
src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsScheduledJobBhv.java
return doSelectEntity(xprepareCBAsPK(id), tp); } protected ScheduledJobCB xprepareCBAsPK(String id) { assertObjectNotNull("id", id); return newConditionBean().acceptPK(id); } protected <ENTITY extends ScheduledJob> OptionalEntity<ENTITY> doSelectOptionalByPK(String id, Class<? extends ENTITY> tp) { return createOptionalEntity(doSelectByPK(id, tp), id); }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/user/bsbhv/BsUserBhv.java
return doSelectEntity(xprepareCBAsPK(id), tp); } protected UserCB xprepareCBAsPK(String id) { assertObjectNotNull("id", id); return newConditionBean().acceptPK(id); } protected <ENTITY extends User> OptionalEntity<ENTITY> doSelectOptionalByPK(String id, Class<? extends ENTITY> tp) { return createOptionalEntity(doSelectByPK(id, tp), id); }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 12K bytes - Viewed (0) -
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/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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
// When the accept method is called 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"); } } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K 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) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
*/ public class SmbFileFilterTest { /** * A minimal implementation that accepts every {@link SmbFile}. */ private final SmbFileFilter ALWAYSACTIVE = new SmbFileFilter() { @Override public boolean accept(SmbFile file) throws SmbException { // Never inspect the file – simply accept. return true; } }; /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
* <p> * The class under test is a simple wrapper around the base class that * sets internal fields in its constructor. * These tests verify that the constructor accepts various parameters * without throwing exceptions. */ @ExtendWith(MockitoExtension.class) class MsrpcSamrConnect2Test { // Helper method to create a minimal SamrPolicyHandle instance.Registered: 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/FileEntryAdapterIteratorTest.java
// With filter, resource should be closed due to try-with-resources verify(filter).accept(resource); verify(resource).close(); } @Test @DisplayName("Iterator with rejecting filter - finds next acceptable") void iteratorWithRejectingFilter() throws Exception { // Setup: first entry rejected, second accepted FileEntry entry1 = mock(FileEntry.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0)