Search Options

Results per page
Sort
Preferred Languages
Advance

Results 701 - 710 of 1,808 for try (0.04 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

                      assertEquals(v3(), newV);
                      return null;
                    }));
        expectMissing(e0());
      }
    
      public void testMergeNullValue() {
        try {
          getMap()
              .merge(
                  k0(),
                  null,
                  (oldV, newV) -> {
                    throw new AssertionFailedError("Should not call merge function if value was null");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "SSO configuration error";
            try {
                throw new SsoProcessException(expectedMessage);
            } catch (SsoProcessException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            collection.containsAll(MinimalCollection.of(e3())));
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
          assertFalse(collection.containsAll(MinimalCollection.of((E) null)));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

      public void testReplace_absentNullValueUnsupported() {
        try {
          getMap().replace(k3(), null);
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          state == STATE_IDLE ||
            state == STATE_OPEN_REQUEST_BODY ||
            state == STATE_WRITING_REQUEST_BODY ||
            state == STATE_READ_RESPONSE_HEADERS,
        ) {
          "state: $state"
        }
    
        try {
          val statusLine = StatusLine.parse(headersReader.readLine())
    
          val responseBuilder =
            Response
              .Builder()
              .protocol(statusLine.protocol)
              .code(statusLine.code)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (7)
  6. src/main/java/jcifs/spnego/NegTokenInit.java

            }
            return String.format("NegTokenInit[flags=%d,mechs=%s,mic=%s]", this.getContextFlags(), Arrays.toString(this.getMechanisms()), mic);
        }
    
        @Override
        public byte[] toByteArray() {
            try {
                final ASN1EncodableVector fields = new ASN1EncodableVector();
                final ASN1ObjectIdentifier[] mechs = getMechanisms();
                if (mechs != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/spnego/NegTokenTarg.java

         */
        public void setMechanism(final ASN1ObjectIdentifier mechanism) {
            this.mechanism = mechanism;
        }
    
        @Override
        public byte[] toByteArray() {
            try {
                final ByteArrayOutputStream collector = new ByteArrayOutputStream();
                final ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            // For now, just test the empty case
            assertEquals(0, channelManager.getHealthyChannels().size());
        }
    
        @Test
        void testChannelSelection() {
            try {
                channelManager.selectChannel(mockMessage);
                fail("Should throw exception when no channels available");
            } catch (Exception e) {
                // Expected - no channels available
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java

         * Initializes the MimeTypes instance using the default configuration.
         * @throws CrawlerSystemException if the MIME types configuration cannot be loaded
         */
        public MimeTypeHelperImpl() {
            try {
                mimeTypes = MimeTypesFactory.create(MIME_TYPES_RESOURCE_NAME);
            } catch (final Exception e) {
                throw new CrawlerSystemException("Could not initialize MimeTypeHelper.", e);
            }
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/SetsTest.java

        try {
          unmod.add(4);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.remove(4);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.addAll(singleton(4));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
Back to top