Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 842 for IOException (0.04 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            }
    
            @Test
            @DisplayName("Should throw IOException when handle is stale")
            void testDoSendReceiveFragment_StaleHandle() throws Exception {
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
                when(mockSmbPipeHandleInternal.isStale()).thenReturn(true);
    
                assertThrows(IOException.class, () -> handle.doSendReceiveFragment(new byte[10], 0, 10, new byte[10]));
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/witness/MockWitnessService.java

        /**
         * Get the address the service is listening on
         *
         * @return the service address
         * @throws IOException if address cannot be determined
         */
        public InetAddress getAddress() throws IOException {
            if (serverSocket == null) {
                throw new IOException("Service not started");
            }
            return InetAddress.getLocalHost();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. 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");
            final File file = tempFolder.newFile("hoge.properties");
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacDataInputStreamTest.java

    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.math.BigInteger;
    import java.util.Date;
    
    import org.junit.jupiter.api.Test;
    
    import jcifs.SmbConstants;
    import jcifs.smb.SID;
    
    public class PacDataInputStreamTest {
    
        // Helper to create PacDataInputStream from a byte array
        private PacDataInputStream createInputStream(byte[] data) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            // Arrange
            int access = 0x01;
            IOException expectedException = new IOException("Network error");
            // Simulate IOException during RPC call
            doThrow(expectedException).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
            // Act & Assert
            IOException thrown = assertThrows(IOException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

      public void testMethodsThrowWhenClosed() throws IOException {
        CharSequenceReader reader = new CharSequenceReader("");
        reader.close();
    
        assertThrows(IOException.class, () -> reader.read());
    
        assertThrows(IOException.class, () -> reader.read(new char[10]));
    
        assertThrows(IOException.class, () -> reader.read(new char[10], 0, 10));
    
        assertThrows(IOException.class, () -> reader.read(CharBuffer.allocate(10)));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
        public void testGetContentWithParser() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "42";
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteSink.java

       * independent stream each time it is called.
       *
       * <p>The caller is responsible for ensuring that the returned stream is closed.
       *
       * @throws IOException if an I/O error occurs while opening the stream
       */
      public abstract OutputStream openStream() throws IOException;
    
      /**
       * Opens a new buffered {@link OutputStream} for writing to this sink. The returned stream is not
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/ByteSink.java

       * independent stream each time it is called.
       *
       * <p>The caller is responsible for ensuring that the returned stream is closed.
       *
       * @throws IOException if an I/O error occurs while opening the stream
       */
      public abstract OutputStream openStream() throws IOException;
    
      /**
       * Opens a new buffered {@link OutputStream} for writing to this sink. The returned stream is not
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/JobProcessTest.java

    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.function.Consumer;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class JobProcessTest extends UnitFessTestCase {
    
        public void test_constructor_processOnly() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top