Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,385 for When (0.02 sec)

  1. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

                TimeZone.setDefault(testTimeZone);
    
                // When
                DfFinalTimeZoneProvider provider = curtainBeforeHook.createFinalTimeZoneProvider();
    
                // Then
                // Provider should still use FessUserTimeZoneProcessProvider.centralTimeZone
                // which was set when the class was loaded
                TimeZone providedTimeZone = provider.provide();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/StringsTest.java

                // When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceeded
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    Strings.findUNITermination(bufferWithoutTermination, 0, bufferWithoutTermination.length);
                }, "Should throw ArrayIndexOutOfBoundsException when termination not found within bounds");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

            byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 };
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
            int result = instance.readParameterWordsWireFormat(buffer, 0);
    
            // Then
            assertEquals(8, result);
            assertEquals(0xffffL, instance.getCount());
        }
    
        /**
         * Test of readParameterWordsWireFormat with zero count
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            when(configWithCreds.getDefaultUsername()).thenReturn("testuser");
            when(configWithCreds.getDefaultPassword()).thenReturn("testpass");
            when(configWithCreds.getDefaultDomain()).thenReturn("TESTDOMAIN");
            when(configWithCreds.getBufferCacheSize()).thenReturn(16);
            when(configWithCreds.getMaximumBufferSize()).thenReturn(65536);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                int result = 0;
                when(mockBuffer.dec_ndr_short()).thenReturn(4096, 4096, 10, result, 0);
                when(mockBuffer.dec_ndr_long()).thenReturn(12345);
                when(mockBuffer.dec_ndr_small()).thenReturn(1);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().when(mockBuffer.align(anyInt())).thenReturn(0);
    
                // When
                bind.decode_out(mockBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        void testMessageConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(CRYPTO_ERROR_MESSAGE);
    
            // Then
            assertEquals(CRYPTO_ERROR_MESSAGE, exception.getMessage(), "Message should be preserved");
            assertNull(exception.getCause(), "Cause should be null when not specified");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            // Given
            String filename = "testFile.txt";
            int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO
    
            // When
            Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel);
    
            // Then
            assertEquals(filename, trans.path, "The path should be set correctly.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                samr.SamrSamEntry entry = new samr.SamrSamEntry();
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // idx, _name_bufferp
                when(mockNdrBuffer.dec_ndr_short()).thenReturn(4, 6); // length, maximum_length
                when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers
    
                // When/Then: Should throw exception
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @Test
        @DisplayName("Should return null for getService")
        void testGetService() {
            // When
            String service = response.getService();
    
            // Then
            assertNull(service);
        }
    
        @Test
        @DisplayName("Should prepare next request correctly when received")
        void testPrepareWhenReceived() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

         */
        @Test
        void testDecode() throws NdrException {
            // When
            ndrObject.decode(mockBuffer);
    
            // Then
            // Verify that our mock buffer had the expected method called.
            verify(mockBuffer).dec_ndr_long();
        }
    
        /**
         * Test case for the encode method when it throws an NdrException.
         * Verifies that the exception is correctly propagated.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top