Search Options

Results per page
Sort
Preferred Languages
Advance

Results 591 - 600 of 2,541 for throwIt (0.04 sec)

  1. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            when(delegate.next()).thenReturn(entry1, entry2);
    
            // Adapter that always throws
            FileEntryAdapterIterator iterator = new FileEntryAdapterIterator(parent, delegate, null) {
                @Override
                protected SmbResource adapt(FileEntry e) throws MalformedURLException {
                    throw new MalformedURLException("Always fails");
                }
            };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResultData.java

         * @param params Additional parameters for the conversion.
         * @return The XContentBuilder with the access result data.
         * @throws IOException if the conversion fails.
         */
        @Override
        public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {
            builder.startObject();
            if (transformerName != null) {
                builder.field(TRANSFORMER_NAME, transformerName);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            public int getOpnum() {
                return 0x1234;
            }
    
            @Override
            public void encode_in(NdrBuffer buf) throws NdrException {
                buf.enc_ndr_small(0xAB);
            }
    
            @Override
            public void decode_out(NdrBuffer buf) throws NdrException {
                decodedValue = buf.dec_ndr_small();
            }
        }
    
        /* --- flag handling -------------------------------- */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

        }
    
        @Test
        void testReadDataWireFormatZeroLength() throws SMBProtocolDecodingException {
            // Test with zero-length data
            byte[] buffer = new byte[100];
            int result = response.readDataWireFormat(buffer, 50, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testReadDataWireFormatAtBufferBoundary() throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            byte[] copiedData = Arrays.copyOfRange(outputBuffer, 0, dataLength);
            assertArrayEquals(testData, copiedData);
        }
    
        @Test
        @DisplayName("Should throw exception when output buffer too small")
        void testReadBytesWireFormatBufferTooSmall() throws Exception {
            // Given
            byte[] smallOutputBuffer = new byte[10];
            Smb2ReadResponse smallBufferResponse = new Smb2ReadResponse(mockConfig, smallOutputBuffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        void testConstructorWithNullFileId() {
            // Should not throw exception
            Smb2FlushRequest requestWithNull = new Smb2FlushRequest(mockConfig, null);
            assertNotNull(requestWithNull);
        }
    
        @Test
        @DisplayName("setFileId should update file ID")
        void testSetFileId() throws Exception {
            byte[] newFileId = new byte[16];
            Arrays.fill(newFileId, (byte) 0xFF);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

    /**
     * @author shinsuke
     *
     */
    public class HcHttpClientTest extends PlainTestCase {
        public HcHttpClient httpClient;
    
        public UrlFilter urlFilter;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("mimeTypeHelper", MimeTypeHelperImpl.class)//
                    .singleton("dataHelper", MemoryDataHelper.class)//
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Encdec.java

         * @param dlim the maximum index in the destination array
         * @return the number of bytes written
         * @throws IOException if an encoding error occurs
         */
        public static int enc_utf8(final String str, final byte[] dst, int di, final int dlim) throws IOException {
            final int start = di;
            int ch;
            final int strlen = str.length();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

        /**
         * Test method for
         * {@link org.codelibs.core.io.PropertiesUtil#store(Properties, java.io.OutputStream, String)}
         * .
         *
         * @throws IOException
         */
        @Test
        public void testStorePropertiesOutputStreamString() throws IOException {
            final Properties outProperties = new Properties();
            outProperties.setProperty("a", "A");
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NetworkExplorer.java

         * @param f1name name of first file
         * @param f2 second file to compare
         * @return comparison result for sorting
         * @throws IOException if an I/O error occurs
         */
        protected int compareNames(final SmbFile f1, final String f1name, final SmbFile f2) throws IOException {
            if (f1.isDirectory() != f2.isDirectory()) {
                return f1.isDirectory() ? -1 : 1;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top