Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,010 for Accept (0.03 sec)

  1. 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)
  2. 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)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/CommonsCliUpgradeOptions.java

            printStream.accept("");
            // we have no DI here (to discover)
            printStream.accept("Goals:");
            printStream.accept("  help  - display this help message");
            printStream.accept("  check - check for available upgrades");
            printStream.accept("  apply - apply available upgrades");
            printStream.accept("");
            printStream.accept("Options:");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:48:39 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanLogger.java

            writer.accept("=== PROJECT BUILD PLAN ================================================");
            writer.accept("Project:                     " + getKey(project));
            writer.accept("Repositories (dependencies): " + project.getRemoteProjectRepositories());
            writer.accept("Repositories (plugins):      " + project.getRemotePluginRepositories());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

     *
     * The algorithm map will be turned into a heading such as "Accept-Encoding: br, gzip"
     *
     * If [algorithms] is empty this interceptor has no effect. To disable compression set
     * a specific "Accept-Encoding: identity" or similar.
     *
     * See https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
     */
    open class CompressionInterceptor(
      vararg val algorithms: DecompressionAlgorithm,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 2.9K bytes
    - Viewed (1)
  6. 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)
  7. src/test/java/jcifs/smb/DosFileFilterTest.java

            // When calling accept
            // Then it should be accepted because the READONLY attribute is present
            assertTrue(dosFileFilter.accept(mockFile));
        }
    
        /**
         * Tests that the accept method returns false when the file attributes do not
         * contain any of the attributes specified in the filter.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java

            printStream.accept("");
            // we have no DI here (to discover)
            printStream.accept("Goals:");
            printStream.accept("  diag - display encryption configuration diagnostic");
            printStream.accept("  init - wizard to configure encryption (interactive only)");
            printStream.accept("  encrypt - encrypts input");
            printStream.accept("  decrypt - decrypts encrypted input");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Sep 25 17:39:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java

            // Wildcard shouldn't affect accept logic.
            DosFileFilter customFilter = new DosFileFilter("*.txt", SmbFile.ATTR_DIRECTORY);
            SmbFile file = mock(SmbFile.class);
            when(file.getAttributes()).thenReturn(SmbFile.ATTR_DIRECTORY);
            assertTrue(customFilter.accept(file), "Wildcard should be ignored in accept");
        }
    
        @Test
        public void testAcceptHandlesNullFile() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top