Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 2,976 for throw (0.01 sec)

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

            // Should not throw any exception and simply return.
            assertDoesNotThrow(() -> dfsImpl.cache(mockContext, "\\\\server\\share\\path", mockReferral));
        }
    
        @Test
        void testCache_InvalidPath() {
            // Scenario: The UNC path provided is invalid.
            DfsReferralDataInternal mockReferral = mock(DfsReferralDataInternal.class);
            // Should not throw any exception.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                // Act + Assert
                CIFSException thrown = assertThrows(CIFSException.class, () -> SmbEnumerationUtil.doEnum(parent, "*", 0, null, null));
                assertSame(differentException, thrown);
            }
    
            @Test
            @DisplayName("list wraps non-SmbException CIFSException properly")
            void list_wrapsOtherCIFSException() throws Exception {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

      }
    
      public void start() throws Exception {
        if (mockWebServer != null) throw new IllegalStateException();
    
        mockWebServer = new MockWebServer();
        mockWebServer.setDispatcher(this);
        mockWebServer.start(slackApi.port);
      }
    
      public HttpUrl newAuthorizeUrl(String scopes, String team, Listener listener) {
        if (mockWebServer == null) throw new IllegalStateException();
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

        private ScriptEngineFactory scriptEngineFactory;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            scriptEngineFactory = new ScriptEngineFactory();
        }
    
        @Override
        public void tearDown() throws Exception {
            super.tearDown();
        }
    
        // Test constructor
        public void test_constructor() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

      }
    
      @Override
      public int count(@Nullable Object element) {
        throw new AssertionError();
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        throw new AssertionError();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        throw new AssertionError();
      }
    
      @Override
      boolean isPartialView() {
        throw new AssertionError();
      }
    
      @Override
      public int size() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

         * @throws DictionaryException if the dictionary file cannot be read.
         */
        protected void reload(final StopwordsUpdater updater) {
            try (CurlResponse curlResponse = dictionaryManager.getContentResponse(this)) {
                reload(updater, curlResponse.getContentAsStream());
            } catch (final IOException e) {
                throw new DictionaryException("Failed to parse " + path, e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/Kerb5Context.java

                    throw new SmbException("Failed to query Kerberos session key from ExtendedGSSContext", ex);
                }
            }
            throw new SmbException("ExtendedGSSContext is not implemented by GSSContext");
        }
    
        @Override
        public byte[] initSecContext(byte[] token, int off, int len) throws SmbException {
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  8. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

      static <V extends @Nullable Object> V getDoneFromTimeoutOverload(Future<V> future)
          throws ExecutionException {
        checkState(future.isDone(), "Future was expected to be done: %s", future);
        try {
          return future.get(0, SECONDS);
        } catch (InterruptedException e) {
          throw new AssertionError();
        } catch (TimeoutException e) {
          throw new AssertionError();
        }
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/ntlm/JcifsEngine.java

         * @return the Base64-encoded Type 3 message
         * @throws NTLMEngineException if an NTLM engine error occurs
         * @throws CrawlingAccessException if an error occurs during message generation
         */
        @Override
        public String generateType3Msg(final String username, final String password, final String domain, final String workstation,
                final String challenge) throws NTLMEngineException {
            Type2Message type2Message;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top