Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 3,054 for throws (0.3 sec)

  1. src/test/java/jcifs/netbios/UniAddressTest.java

                when(mockInetAddress.getHostName()).thenReturn("myhost.domain.com");
                UniAddress uniAddress = new UniAddress(mockInetAddress);
                assertEquals("MYHOST", uniAddress.firstCalledName());
            }
    
            @Test
            void shouldReturnSmbServerNameWhenInetAddressHostnameLengthGreaterThan15() throws UnknownHostException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DfsImplTest.java

        }
    
        @Test
        void testIsTrustedDomain_NoUserDomain() throws SmbAuthException {
            // Scenario: The user credentials do not specify a domain.
            when(mockCredentials.getUserDomain()).thenReturn(null);
            assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com"));
        }
    
        @Test
        void testIsTrustedDomain_ConnectionFails() throws SmbAuthException {
            // Scenario: Transport connection fails
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Service.java

       * @param unit the time unit of the timeout argument
       * @throws TimeoutException if the service has not reached the given state within the deadline
       * @throws IllegalStateException if the service {@linkplain State#FAILED fails}.
       * @since 15.0
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            // Then
            assertEquals(0, bytesWritten);
        }
    
        @Test
        @DisplayName("Should read valid single notification from wire format")
        void testReadSingleNotification() throws Exception {
            // Given
            byte[] buffer = new byte[512];
            int offset = 0;
    
            // Set header start position for the response
            setHeaderStart(response, 64);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/SneakyThrows.java

       *     write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always
       *     throw.
       */
      @CanIgnoreReturnValue
      static Error sneakyThrow(Throwable t) {
        throw new SneakyThrows<Error>().throwIt(t);
      }
    
      @SuppressWarnings("unchecked") // not really safe, but that's the point
      private Error throwIt(Throwable t) throws T {
        throw (T) t;
      }
    
      private SneakyThrows() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/SneakyThrows.java

       *     write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always
       *     throw.
       */
      @CanIgnoreReturnValue
      static Error sneakyThrow(Throwable t) {
        throw new SneakyThrows<Error>().throwIt(t);
      }
    
      @SuppressWarnings("unchecked") // not really safe, but that's the point
      private Error throwIt(Throwable t) throws T {
        throw (T) t;
      }
    
      private SneakyThrows() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/ASN1Util.java

         * @param stream the ASN.1 input stream
         * @return next object from stream cast to type
         * @throws PACDecodingException if types are incompatible
         * @throws IOException if reading from stream fails
         */
        public static <T extends ASN1Primitive> T as(final Class<T> type, final ASN1InputStream stream)
                throws PACDecodingException, IOException {
            return as(type, stream.readObject());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

            } else {
                throw new ResourceDoesNotExistException("No content provided for " + resource.getName());
            }
        }
    
        @Override
        public void fillOutputData(OutputData outputData) throws TransferFailedException {
            outputData.setOutputStream(new ByteArrayOutputStream());
        }
    
        @Override
        protected void openConnectionInternal() throws ConnectionException, AuthenticationException {}
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. .teamcity/.mvn/wrapper/maven-wrapper.jar

    java.util.Properties, Appendable); private java.net.URI prepareDistributionU() throws java.net.URISyntaxException; private java.net.URI readDistroUrl() throws java.net.URISyntaxException; private static void loadProperties(java.io.File, java.util.Properties) throws java.io.IOException; public java.net.URI getDistribution(); public WrapperConfiguration getConfiguration(); public void execute(String[], Installer, BootstrapMainStarter) throws Exception; private String getProperty(String); private String getProperty(String,...
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 49.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            assertTrue(output.contains("UTF-16 test"));
        }
    
        public void test_run_withIOException() throws InterruptedException {
            InputStream faultyStream = new InputStream() {
                @Override
                public int read() throws IOException {
                    throw new IOException("Test exception");
                }
            };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top