Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 801 for Try (0.01 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        assertContentsInOrder(list, "a", "b", "c");
    
        try {
          assertContentsInOrder(list, "a", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "b", "c", "d");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "c", "b");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        assertContentsInOrder(list, "a", "b", "c");
    
        try {
          assertContentsInOrder(list, "a", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "b", "c", "d");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "c", "b");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java

        }
    
        @Override
        public String readLine() throws IOException {
            try {
                return prompter.prompt(null);
            } catch (org.apache.maven.api.services.PrompterException e) {
                throw new IOException("Unable to prompt", e);
            }
        }
    
        @Override
        public String readPassword() throws IOException {
            try {
                return prompter.promptForPassword(null);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:48:41 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's HashMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java

        }
    
        /**
         * Test constructor with a valid login context.
         *
         * @throws LoginException if login fails.
         */
        @Test
        void testConstructor_Success() throws LoginException {
            try (MockedConstruction<LoginContext> mocked = Mockito.mockConstruction(LoginContext.class, (mock, context) -> {
                when(mock.getSubject()).thenReturn(subject);
                doNothing().when(mock).login();
            })) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      public void testEntrySetRemoveAllNullFromEmpty() {
        try {
          super.testEntrySetRemoveAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
          // GWT's TreeMap.entrySet().removeAll(null) doesn't throws NPE.
        }
      }
    
      @Override
      public void testEntrySetRetainAllNullFromEmpty() {
        try {
          super.testEntrySetRetainAllNullFromEmpty();
        } catch (RuntimeException tolerated) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

      }
    
      @Throws(IOException::class)
      fun flushRequest() {
        try {
          codec.flushRequest()
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      @Throws(IOException::class)
      fun finishRequest() {
        try {
          codec.finishRequest()
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/sql/StatementUtil.java

         */
        public static boolean execute(final Statement statement, final String sql) {
            assertArgumentNotNull("statement", statement);
            assertArgumentNotEmpty("sql", sql);
    
            try {
                return statement.execute(sql);
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * Sets the fetch size.
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         */
        public static ByteBuffer map(final FileChannel channel, final MapMode mode) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("mode", mode);
    
            try {
                return channel.map(mode, 0, channel.size());
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Returns the size of the file.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/CloseableUtil.java

         * <pre>
         * InputStream is = ...;
         * try {
         *   is.read(...);
         * } finally {
         *   close(is);
         * }
         * </pre>
         * <p>
         * If an exception occurs in the try block, there is a possibility that an exception will also occur in the finally block's {@link #close(Closeable)}. If the exception is thrown from the finally block, the original exception from the try block will be lost.
         * </p>
         *
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top