Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 2,760 for 2test (0.07 sec)

  1. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

        }
    
        public void test_constructor() {
            // Test that constructor creates an instance
            ScriptExecutor executor = new ScriptExecutor();
            assertNotNull(executor);
            assertTrue(executor instanceof JobExecutor);
        }
    
        public void test_execute_withValidScriptType() {
            // Setup test script engine
            scriptEngineFactory.add("test", testScriptEngine);
    
            // Execute script
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

    import java.util.concurrent.atomic.AtomicInteger;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Security-focused test cases for BufferCache to verify buffer overflow protection.
     */
    public class BufferCacheSecurityTest {
    
        /**
         * Test that buffer allocation validates size to prevent overflow.
         */
        @Test
        public void testBufferSizeValidation() {
            // When - Get a buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

        }
    
        public void test_constructor_withSpecialCharacters() {
            // Test with URLs containing special characters
            String parentUrl = "http://example.com/parent?query=test&id=123";
            String url = "http://example.com/child#fragment";
            ContentNotFoundException exception = new ContentNotFoundException(parentUrl, url);
    
            assertNotNull(exception);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

        }
    
        @Test
        @DisplayName("Test FileBasicInfo size method")
        void testFileBasicInfoSize() {
            // Given
            FileBasicInfo info = new FileBasicInfo();
    
            // When & Then
            assertEquals(40, info.size());
        }
    
        @Test
        @DisplayName("Test FileBasicInfo toString method")
        void testFileBasicInfoToString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for the NdrObject abstract class.
     * This test uses a concrete implementation to verify the abstract contract.
     */
    @ExtendWith(MockitoExtension.class)
    class NdrObjectTest {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        }
    
        @Test
        @DisplayName("Test with various file ID patterns")
        void testWithVariousFileIdPatterns() {
            // Test with all zeros
            byte[] zeroFileId = new byte[16];
            Smb2FlushRequest zeroRequest = new Smb2FlushRequest(mockConfig, zeroFileId);
            testFileIdInRequest(zeroRequest, zeroFileId);
    
            // Test with all ones
            byte[] onesFileId = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            Properties props = new Properties();
            config = new PropertyConfiguration(props);
        }
    
        @Test
        void testConstructor() {
            // Test constructor initializes all fields correctly
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt

    import assertk.assertions.isTrue
    import kotlin.test.Test
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.IOException
    import okio.Source
    import okio.buffer
    
    class ResponseBodyTest {
      @Test
      fun sourceEmpty() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Test reflexivity
            assertTrue(item1.equals(item1));
    
            // Test symmetry and arrays with different order
            assertTrue(item1.equals(item2));
            assertTrue(item2.equals(item1));
    
            // Test with different inputs
            assertFalse(item1.equals(item3));
            assertFalse(item3.equals(item1));
    
            // Test with different output
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/DictionaryItemTest.java

        public void test_getId_defaultValue() {
            // Test that default ID value is 0
            assertEquals(0L, dictionaryItem.getId());
        }
    
        public void test_getId_afterSetting() {
            // Test getting ID after setting it
            dictionaryItem.id = 123L;
            assertEquals(123L, dictionaryItem.getId());
        }
    
        public void test_getId_negativeValue() {
            // Test with negative ID value
            dictionaryItem.id = -456L;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top