Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 212 for Ensure (4.41 sec)

  1. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

        /**
         * The mime type.
         */
        public String mimeType = "application/datastore";
    
        /**
         * The flag to check if the data store is alive.
         * Volatile to ensure visibility across threads.
         */
        protected volatile boolean alive = true;
    
        /**
         * Default constructor.
         */
        public AbstractDataStore() {
            // nothing
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EXTRACTOR_TESTS_README.md

    ## Contributing
    
    When adding new tests:
    1. Follow the existing naming convention: `test_<method>_<scenario>_<expectedResult>`
    2. Add clear JavaDoc comments explaining the test purpose
    3. Ensure tests are independent and can run in any order
    4. Clean up resources in finally blocks or use try-with-resources
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:55:01 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

            assertEquals("true", returned.get("useKeyTab"));
            assertEquals("true", returned.get("storeKey"));
            assertEquals("******@****.***", returned.get("principal"));
            // Ensure no unexpected extra options
            assertEquals(3, returned.size(), "Only provided options are expected");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

         *
         * @return byte array containing associated data
         */
        public byte[] getAssociatedData() {
            final byte[] aad = new byte[52]; // Use full header size to ensure all data fits
            int index = 0;
    
            // Protocol ID
            SMBUtil.writeInt4(TRANSFORM_PROTOCOL_ID, aad, index);
            index += 4;
    
            // Skip signature (16 bytes of zeros for AAD)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. src/main/assemblies/files/fess.in.sh

    # space for a full heap dump.
    #FESS_JAVA_OPTS="$FESS_JAVA_OPTS -XX:HeapDumpPath=$FESS_HOME/logs/heapdump.hprof"
    
    # Disables explicit GC
    FESS_JAVA_OPTS="$FESS_JAVA_OPTS -XX:+DisableExplicitGC"
    
    # Ensure UTF-8 encoding by default (e.g. filenames)
    FESS_JAVA_OPTS="$FESS_JAVA_OPTS -Dfile.encoding=UTF-8"
    
    # Application Configuration
    if [ "x$APP_NAME" = "x" ]; then
      APP_NAME=fess
    fi
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 03:48:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            assertTrue(resultString.contains("totalAvailableEntries=5"), "toString should contain the total available entries.");
        }
    
        /**
         * Tests the empty write methods to ensure they do nothing and return 0.
         */
        @Test
        void testWriteMethods() {
            NetShareEnumResponse response = new NetShareEnumResponse();
            byte[] dst = new byte[10];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbPipeHandleTest.java

    import org.mockito.Mockito;
    
    import jcifs.smb.SmbPipeHandleInternal;
    
    /**
     * Unit tests for a class that implements the {@link SmbPipeHandle} interface.
     * This test class uses a mock implementation to ensure any class adhering to the
     * SmbPipeHandle contract is tested for correctness.
     */
    public class SmbPipeHandleTest {
    
        private SmbPipeHandle smbPipeHandle;
        private SmbPipeResource mockPipeResource;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the Trans2QueryFSInformationResponse class.
     */
    class Trans2QueryFSInformationResponseTest {
    
        /**
         * Tests the constructor to ensure it sets up the command and subcommand correctly.
         */
        @Test
        void testConstructor() {
            Trans2QueryFSInformationResponse response =
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        }
    
        /**
         * Test backward compatibility with standard Base64
         *
         * @throws Exception
         */
        public void testBackwardCompatibility() throws Exception {
            // These test cases ensure that the new java.util.Base64 implementation
            // produces the same output as the old custom implementation
    
            // Test case 1: Standard padding
            final byte[] data1 = "abc".getBytes();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                w.write(payload, payload.length, out);
    
                // Give the writer thread time to process and set exception
                w.wait(100);
            }
    
            // Wait a bit more to ensure exception is captured
            Thread.sleep(100);
    
            // Act + Assert: checkException should throw the SmbException captured by the thread
            assertThrows(SmbException.class, w::checkException);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top