Search Options

Results per page
Sort
Preferred Languages
Advance

Results 611 - 620 of 2,976 for throw (0.02 sec)

  1. guava/src/com/google/common/collect/ImmutableSetMultimap.java

      }
    
      /**
       * Guaranteed to throw an exception and leave the multimap unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final ImmutableSet<V> removeAll(@Nullable Object key) {
        throw new UnsupportedOperationException();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java

        public void testLangAnalyzerConverterInit() throws IOException {
            // Test inner class LangAnalyzerConverter init
            AnalyzerConverter.LangAnalyzerConverter langConverter = converter.new LangAnalyzerConverter("en");
    
            langConverter.init();
            // Should not throw exception
        }
    
        @Test
        public void testLangAnalyzerConverterWithNullLang() throws IOException {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

                this.throwOnCloseInternal = true;
                return this;
            }
    
            @Override
            protected FileEntry open() throws CIFSException {
                if (staticThrowOnOpen)
                    throw new CIFSException("open fail");
                // Simulate fetching first page during open
                if (staticPages != null && !staticPages.isEmpty()) {
                    pageIdx = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * {@code setCount()} to throw an exception, as checking the return value could produce an
       * incorrect error message like "setCount() should return the original count" instead of the
       * message passed to a later invocation of {@code fail()}, like "setCount should throw
       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemoveAll_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeAll(emptyCollection) should return false or throw "
                  + "UnsupportedOperationException",
              collection.removeAll(MinimalCollection.of()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/UniAddressTest.java

            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName("", false),
                    "getAllByName should throw UnknownHostException for empty string");
            assertThrows(UnknownHostException.class, () -> UniAddress.getAllByName(null, false),
                    "getAllByName should throw UnknownHostException for null name");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java

    class SmbFilenameFilterTest {
    
        @Test
        void acceptReturnsTrueWhenNameMatches() throws Exception {
            SmbFile dir = Mockito.mock(SmbFile.class);
            SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt");
            assertTrue(filter.accept(dir, "Hello.TXT"));
        }
    
        @Test
        void acceptReturnsFalseWhenNameDoesNotMatch() throws Exception {
            SmbFile dir = Mockito.mock(SmbFile.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java

      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testGet_nullNotContainedAndUnsupported() {
        try {
          assertNull("get(null) should return null or throw", get(null));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testGet_nonNullWhenNullContained() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers
    
                // When/Then: Should throw exception
                NdrException thrown = assertThrows(NdrException.class, () -> entry.decode(mockNdrBuffer));
                assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage());
            }
        }
    
        @Nested
        @DisplayName("SamrSamArray Tests")
        class SamrSamArrayTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

            // Test throwing and catching the exception
            String parentUrl = "http://example.com/parent";
            String url = "http://example.com/child";
    
            try {
                throw new ContentNotFoundException(parentUrl, url);
            } catch (ContentNotFoundException e) {
                assertEquals("Not Found: http://example.com/child Parent: http://example.com/parent", e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top