Search Options

Results per page
Sort
Preferred Languages
Advance

Results 771 - 780 of 3,187 for throwIt (0.04 sec)

  1. src/test/java/jcifs/context/SingletonContextTest.java

        }
    
        @Test
        void testInitWithNullProperties() throws CIFSException {
            // Test successful initialization with null properties
            assertDoesNotThrow(() -> SingletonContext.init(null));
            assertNotNull(SingletonContext.getInstance());
        }
    
        @Test
        void testInitWithCustomProperties() throws CIFSException {
            // Test successful initialization with custom properties
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

     */
    @GwtCompatible
    @NullMarked
    public class EvictingQueueTest extends TestCase {
    
      public void testCreateWithNegativeSize() throws Exception {
        assertThrows(IllegalArgumentException.class, () -> EvictingQueue.create(-1));
      }
    
      public void testCreateWithZeroSize() throws Exception {
        EvictingQueue<String> queue = EvictingQueue.create(0);
        assertEquals(0, queue.size());
    
        assertTrue(queue.add("hi"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

      @Override
      public C first() {
        throw new NoSuchElementException();
      }
    
      @Override
      public C last() {
        throw new NoSuchElementException();
      }
    
      @Override
      public int size() {
        return 0;
      }
    
      @Override
      public ContiguousSet<C> intersection(ContiguousSet<C> other) {
        return this;
      }
    
      @Override
      public Range<C> range() {
        throw new NoSuchElementException();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

            }
    
            @Override
            public BeanItf2 getAnotherBean() {
                return anotherBean;
            }
    
            @Override
            public void throwException() throws TestException {
                throw new TestException();
            }
        }
    
        static class TestException extends Exception {}
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            }
        }
    
        public void test_cleanup() throws Exception {
            final String sessionId = crawler.getSessionId();
    
            // Add some test data
            crawler.addUrl("http://example.com/");
    
            // Perform cleanup - should not throw exception
            crawler.cleanup(sessionId);
        }
    
        public void test_stop() throws Exception {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Tue Nov 11 13:40:14 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/gcs/GcsClientTest.java

                    .setMetadata(Map.of("label", "label4"))//
                    .build(), "file4".getBytes());
        }
    
        @Override
        protected void tearDown() throws Exception {
            gcsServer.stop();
            super.tearDown();
        }
    
        public void test_doGet() throws Exception {
            try (final ResponseData responseData = gcsClient.doGet("gcs://fess/file1.txt")) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

                throws IOException, XmlPullParserException {
            return buildSettings(userSettingsFile);
        }
    
        private Settings build(SettingsBuildingRequest request) throws IOException, XmlPullParserException {
            try {
                return settingsBuilder.build(request).getEffectiveSettings();
            } catch (SettingsBuildingException e) {
                throw new IOException(e.getMessage(), e);
            }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/AsyncRequestBody.kt

      override fun writeTo(sink: BufferedSink) {
        requestBodySinks.add(sink)
      }
    
      override fun isDuplex(): Boolean = true
    
      @Throws(InterruptedException::class)
      fun takeSink(): BufferedSink = requestBodySinks.poll(5, SECONDS) ?: throw AssertionError("no sink to take")
    
      fun assertNoMoreSinks() {
        assertTrue(requestBodySinks.isEmpty())
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java

            host = "%E3%83%86%E3%82%B9%E3%83%88.org";
            expected = "xn--zckzah.org";
            assertEquals(expected, resolver.toAscii(host));
    
        }
    
        public void test_resolve_ipv6() throws UnknownHostException {
            IdnDnsResolver resolver = new IdnDnsResolver();
    
            // Test IPv6 loopback address with brackets
            String host = "[::1]";
            InetAddress[] addresses = resolver.resolve(host);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 06 07:24:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/InvalidatableSet.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.base.Supplier;
    import com.google.common.collect.ForwardingSet;
    import java.util.Set;
    
    /**
     * A subclass of `ForwardingSet` that throws `IllegalStateException` on invocation of any method
     * (except `hashCode` and `equals`) if the provided `Supplier` returns false.
     */
    final class InvalidatableSet<E> extends ForwardingSet<E> {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top