Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 501 - 510 of 2,240 for throwIf (0.04 seconds)

  1. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testNewInstance() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(Integer.class);
            assertThat((Integer) beanDesc.newInstance(10), is(10));
            assertThat((Integer) beanDesc.newInstance("10"), is(10));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

        this.iterator = iterator;
      }
    
      @Override
      public Iterator<E> iterator() {
        if (iterator == null) {
          // TODO: throw something else? Do we worry that people's code and tests
          // might be relying on this particular type of exception?
          throw new IllegalStateException();
        }
        try {
          return iterator;
        } finally {
          iterator = null;
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            scriptExecutor = new ScriptExecutor();
            scriptEngineFactory = new ScriptEngineFactory();
            testScriptEngine = new TestScriptEngine();
            ComponentUtil.register(scriptEngineFactory, "scriptEngineFactory");
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/base/EnumsTest.java

      }
    
    
      @J2ktIncompatible
      @AndroidIncompatible // depends on details of GC and classloading
      public void testGetIfPresent_doesNotPreventClassUnloading() throws Exception {
        WeakReference<?> shadowLoaderReference = doTestClassUnloading();
        GcFinalization.awaitClear(shadowLoaderReference);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

        private ThumbnailGenerator thumbnailGenerator;
        private File tempOutputFile;
        private Path tempDir;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            tempDir = Files.createTempDirectory("thumbnail-test");
            tempOutputFile = Files.createTempFile(tempDir, "thumbnail", ".png").toFile();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

                updateCalls.add(user);
                if (updateThrowsException) {
                    throw new RuntimeException("Update failed");
                }
            }
    
            @Override
            public void delete(User user) {
                deleteCalls.add(user);
                if (deleteThrowsException) {
                    throw new RuntimeException("Delete failed");
                }
            }
    
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/zip/ZipInputStreamUtil.java

            try {
                zis.reset();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Closes the {@link ZipInputStream}.
         * <p>
         * If {@link ZipInputStream#closeEntry()} throws an exception, an error message is logged.
         * The exception is not rethrown.
         * </p>
         *
         * @param zis
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

          throws IOException {
        testStreamingEncodes(encoding, decoded, encoded);
        testStreamingDecodes(encoding, encoded, decoded);
      }
    
      @GwtIncompatible // Writer
      private static void testStreamingEncodes(BaseEncoding encoding, String decoded, String encoded)
          throws IOException {
        StringWriter writer = new StringWriter();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      @J2ktIncompatible
      private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        stream.writeInt(size());
        for (E e : this) {
          stream.writeObject(e);
        }
      }
    
      @SuppressWarnings("unchecked")
      @J2ktIncompatible
      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 23.9K bytes
    - Click Count (0)
Back to Top