Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 2,174 for Exception (0.13 sec)

  1. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        }
    
        @Test
        void testChannelSelection() {
            try {
                channelManager.selectChannel(mockMessage);
                fail("Should throw exception when no channels available");
            } catch (Exception e) {
                // Expected - no channels available
                assertTrue(e instanceof ChannelLoadBalancer.NoAvailableChannelException);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            ComponentUtil.register(new MockRoleQueryHelper(), "roleQueryHelper");
        }
    
        public void test_init() {
            try {
                labelTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_load() {
            int result = labelTypeHelper.load();
            assertTrue(result >= 0);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

        // Test get method with empty file
        public void test_get_emptyFile() throws Exception {
            writeTestFile("");
    
            OptionalEntity<CharMappingItem> result = charMappingFile.get(1L);
            assertFalse(result.isPresent());
        }
    
        // Test get method with valid data
        public void test_get_validData() throws Exception {
            writeTestFile("a,b => c\nd,e => f\n");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/text/TokenizerTest.java

     *
     */
    public class TokenizerTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testEOF() throws Exception {
            final Tokenizer tokenizer = new Tokenizer("");
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

            void testNullConfigurationThrowsException() throws Exception {
                // Given
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
                constructor.setAccessible(true);
    
                // When & Then
                InvocationTargetException exception = assertThrows(InvocationTargetException.class, () -> constructor.newInstance(null, 1));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exception/InvalidQueryException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    import org.codelibs.fess.mylasta.action.FessMessages;
    import org.lastaflute.web.validation.VaMessenger;
    
    /**
     * Exception thrown when an invalid query is encountered.
     * This exception is typically used in search contexts where a provided
     * query is malformed, contains invalid syntax, or violates query constraints.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

         * @throws Exception
         */
        @Test
        public void testGetElementType_Rawtype() throws Exception {
            assertThat(FieldUtil.getElementTypeOfCollection(Baz.class.getField("collectionOfRawtype")), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        public void testGetElementTypeOfCollection() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            verify(session, times(4)).close();
            verify(transport, times(4)).close();
        }
    
        @Test
        @DisplayName("isSMB2 true and exception fallback to false")
        void isSMB2Cases() throws Exception {
            // Happy path returns true; transport exception path returns false
            when(transport.isSMB2()).thenReturn(true);
            assertTrue(handle.isSMB2());
    
            reset(transport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/CopyUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testIsToOs() throws Exception {
            final int result = copy(is, os);
            assertThat(result, is(srcBytes.length));
            assertThat(os.toByteArray(), is(srcBytes));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReaderToWriter() throws Exception {
            final int result = copy(reader, writer);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

        }
    
        @Test
        public void testReleaseSendRegion() throws Exception {
            RdmaMemoryRegion region = bufferManager.getSendRegion(1024);
            assertNotNull(region);
    
            // Release should not throw exception
            assertDoesNotThrow(() -> bufferManager.releaseSendRegion(region));
        }
    
        @Test
        public void testGetReceiveRegion() throws Exception {
            RdmaMemoryRegion region = bufferManager.getReceiveRegion();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top