Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 571 - 580 of 1,797 for throwIf (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/io/SourceSinkTester.java

        try {
          return new CharSource() {
            @Override
            public Reader openStream() throws IOException {
              return new StringReader(string);
            }
          }.readLines();
        } catch (IOException e) {
          throw new AssertionError();
        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/UnsignedBytes.java

      }
    
      /**
       * Returns the unsigned {@code byte} value represented by the given decimal string.
       *
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code byte}
       *     value
       * @throws NullPointerException if {@code string} is null (in contrast to {@link
       *     Byte#parseByte(String)})
       * @since 13.0
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      /**
       * @serialData the ConcurrentMap of elements and their counts.
       */
        private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeObject(countMap);
      }
    
        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        @SuppressWarnings("unchecked") // reading data stored by writeObject
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

     */
    @J2ktIncompatible // threads
    @GwtIncompatible // threads
    @NullUnmarked
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
        int getsPerTask = 1000;
        int deltaRange = 10000;
        String key = "key";
    
        AtomicLongMap<String> map = AtomicLongMap.create();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        @Override
      Object writeReplace() {
        return new EntrySetSerializedForm<>(map());
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use EntrySetSerializedForm");
      }
    
      @GwtIncompatible
      @J2ktIncompatible
      private static final class EntrySetSerializedForm<K, V> implements Serializable {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java

            assertNull(exception.getCause());
        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String message = "Thrown exception test";
    
            try {
                throw new ScriptEngineException(message);
            } catch (ScriptEngineException e) {
                assertEquals(message, e.getMessage());
                assertNull(e.getCause());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/PurgeLogJobTest.java

                @Override
                public void deleteBefore(long time) {
                    throw new RuntimeException("Crawling error");
                }
            };
    
            SearchLogService searchLogService = new SearchLogService() {
                @Override
                public void deleteBefore(int days) {
                    throw new RuntimeException("Search error");
                }
            };
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 32.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/api/WebApiManagerTest.java

                return true;
            }
    
            @Override
            public void process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
                    throws IOException, ServletException {
                throw new ServletException("Test error");
            }
        }
    
        private static class StatusCodeWebApiManager implements WebApiManager {
            private final int statusCode;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.9K bytes
    - Click Count (0)
Back to Top